We only deleted On/Off string from the subtitle of night light slice in
the settings search result, and still keep On/Off string for Night Light
preference.
Fixes:
130364160
Test: visual
Change-Id: Ibe7f2752f099a4ab0d4a01a205e4e8ce0a226f55
@Override
public CharSequence getSummary() {
- return mTimeFormatter.getAutoModeTimeSummary(mContext, mColorDisplayManager);
+ return mTimeFormatter.getAutoModeSummary(mContext, mColorDisplayManager);
}
private void updateStateInternal() {
return context.getString(summaryFormatResId, getAutoModeSummary(context, manager));
}
- private String getAutoModeSummary(Context context, ColorDisplayManager manager) {
+ public String getAutoModeSummary(Context context, ColorDisplayManager manager) {
final boolean isActivated = manager.isNightDisplayActivated();
final int autoMode = manager.getNightDisplayAutoMode();
if (autoMode == ColorDisplayManager.AUTO_MODE_CUSTOM_TIME) {