diff options
author | John Spurlock <jspurlock@google.com> | 2014-06-10 19:26:14 -0400 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2014-06-10 19:28:03 -0400 |
commit | 6d20526adfd18f7347674d61fe784d456b1b7b61 (patch) | |
tree | d3b8b425d58ec9e85ea52e22bf6a8c4b48ac8c68 /packages/SystemUI/src/com/android/systemui/settings | |
parent | 488662c5700b6fc47d53bace9fd74166b372566e (diff) | |
download | frameworks_base-6d20526adfd18f7347674d61fe784d456b1b7b61.zip frameworks_base-6d20526adfd18f7347674d61fe784d456b1b7b61.tar.gz frameworks_base-6d20526adfd18f7347674d61fe784d456b1b7b61.tar.bz2 |
Brightness slider no longer displays the automatic icon.
Bug:15414855
Change-Id: I3a1b8e7758e41abd172c20177f42452077bfc7a7
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/settings')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java b/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java index a770f58..80e85f9 100644 --- a/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java +++ b/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java @@ -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); } |