Brightness slider no longer displays the automatic icon.
Bug:15414855 Change-Id: I3a1b8e7758e41abd172c20177f42452077bfc7a7
This commit is contained in:
@@ -34,6 +34,7 @@ import java.util.ArrayList;
|
||||
|
||||
public class BrightnessController implements ToggleSlider.Listener {
|
||||
private static final String TAG = "StatusBar.BrightnessController";
|
||||
private static final boolean SHOW_AUTOMATIC_ICON = false;
|
||||
|
||||
/**
|
||||
* {@link android.provider.Settings.System#SCREEN_AUTO_BRIGHTNESS_ADJ} uses the range [-1, 1].
|
||||
@@ -232,7 +233,7 @@ public class BrightnessController implements ToggleSlider.Listener {
|
||||
|
||||
private void updateIcon(boolean automatic) {
|
||||
if (mIcon != null) {
|
||||
mIcon.setImageResource(automatic ?
|
||||
mIcon.setImageResource(automatic && SHOW_AUTOMATIC_ICON ?
|
||||
com.android.systemui.R.drawable.ic_qs_brightness_auto_on :
|
||||
com.android.systemui.R.drawable.ic_qs_brightness_auto_off);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user