Merge "Quick fix for FAB fade setting summary" into main

This commit is contained in:
Riley Jones
2024-09-12 18:44:41 +00:00
committed by Android (Google) Code Review

View File

@@ -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