Quick fix for FAB fade setting summary
Fixes the fade setting to properly set its summary when not disabled. Flag: EXEMPT internal change Bug: 349178637 Test: Check the settings page with navigation button mode and FAB button mode. Verify the summary of the fade setting is correct in both cases. Change-Id: Ia87a634fd69e6098f1a0a658f788e69d10f2dbec
This commit is contained in:
@@ -67,14 +67,11 @@ public class FloatingMenuFadePreferenceController extends BasePreferenceControll
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CharSequence getSummary() {
|
public CharSequence getSummary() {
|
||||||
if (mPreference != null) {
|
int rId = R.string.accessibility_button_fade_summary;
|
||||||
return mPreference.isEnabled()
|
if (mPreference != null && !mPreference.isEnabled()) {
|
||||||
? "%s"
|
rId = R.string.accessibility_button_disabled_button_mode_summary;
|
||||||
: mContext.getString(
|
|
||||||
R.string.accessibility_button_disabled_button_mode_summary);
|
|
||||||
} else {
|
|
||||||
return "%s";
|
|
||||||
}
|
}
|
||||||
|
return mContext.getString(rId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user