Add highlight menu keys for all toggle pref controllers and custom slices
Bug: 204695404 Test: manual, robotest build pass, unit Change-Id: Iad2e28ada8ddb766ffa7eff2c8dc581250cbd6f8
This commit is contained in:
@@ -95,6 +95,11 @@ public class NightDisplayPreferenceController extends TogglePreferenceController
|
||||
preference.setSummary(mTimeFormatter.getAutoModeSummary(mContext, mColorDisplayManager));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSliceHighlightMenuRes() {
|
||||
return R.string.menu_key_display;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onActivated(boolean activated) {
|
||||
updateState(mPreference);
|
||||
|
||||
Reference in New Issue
Block a user