Merge "Quick fix for FAB fade setting summary" into main
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