Merge "Remove toggles in battery settings."
This commit is contained in:
committed by
Android (Google) Code Review
commit
de4bef0243
@@ -84,10 +84,6 @@ public class PowerUsageSummary extends PowerUsageBase implements OnLongClickList
|
||||
|
||||
private static final String KEY_SCREEN_USAGE = "screen_usage";
|
||||
private static final String KEY_TIME_SINCE_LAST_FULL_CHARGE = "last_full_charge";
|
||||
|
||||
private static final String KEY_AUTO_BRIGHTNESS = "auto_brightness_battery";
|
||||
private static final String KEY_SCREEN_TIMEOUT = "screen_timeout_battery";
|
||||
private static final String KEY_AMBIENT_DISPLAY = "ambient_display_battery";
|
||||
private static final String KEY_BATTERY_SAVER_SUMMARY = "battery_saver_summary";
|
||||
|
||||
@VisibleForTesting
|
||||
@@ -272,14 +268,9 @@ public class PowerUsageSummary extends PowerUsageBase implements OnLongClickList
|
||||
mBatteryTipPreferenceController = new BatteryTipPreferenceController(context,
|
||||
KEY_BATTERY_TIP, this);
|
||||
controllers.add(mBatteryTipPreferenceController);
|
||||
controllers.add(new AutoBrightnessPreferenceController(context, KEY_AUTO_BRIGHTNESS));
|
||||
controllers.add(new TimeoutPreferenceController(context, KEY_SCREEN_TIMEOUT));
|
||||
controllers.add(new BatterySaverController(context, getLifecycle()));
|
||||
controllers.add(new BatteryPercentagePreferenceController(context));
|
||||
controllers.add(new AmbientDisplayPreferenceController(
|
||||
context,
|
||||
new AmbientDisplayConfiguration(context),
|
||||
KEY_AMBIENT_DISPLAY));
|
||||
|
||||
return controllers;
|
||||
}
|
||||
|
||||
@@ -544,10 +535,6 @@ public class PowerUsageSummary extends PowerUsageBase implements OnLongClickList
|
||||
public List<String> getNonIndexableKeys(Context context) {
|
||||
List<String> niks = super.getNonIndexableKeys(context);
|
||||
niks.add(KEY_BATTERY_SAVER_SUMMARY);
|
||||
// Duplicates in display
|
||||
niks.add(KEY_AUTO_BRIGHTNESS);
|
||||
niks.add(KEY_SCREEN_TIMEOUT);
|
||||
niks.add(KEY_AMBIENT_DISPLAY);
|
||||
return niks;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user