summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/settings
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2014-07-08 16:53:29 +0200
committerJorim Jaggi <jjaggi@google.com>2014-07-09 16:37:32 +0200
commit3f48f46d7e9073edbc4d8613a6dd4d68a37a11b6 (patch)
tree206ed0fd2a903bf66bf9af8de1e5e2db6dcef01a /packages/SystemUI/src/com/android/systemui/settings
parent6752cba4642ea9103f3013336c005f06968fd442 (diff)
downloadframeworks_base-3f48f46d7e9073edbc4d8613a6dd4d68a37a11b6.zip
frameworks_base-3f48f46d7e9073edbc4d8613a6dd4d68a37a11b6.tar.gz
frameworks_base-3f48f46d7e9073edbc4d8613a6dd4d68a37a11b6.tar.bz2
Update QS header to spec
- Move brightness slider down. - Make clock bigger when expanded. - Show date in collapsed state. - Change size of avatar depending on collapsed/expanded. Bug: 15865202 Bug: 15381387 Change-Id: I7894edae495b5a2d12b4fe4637a9aa3fd2e58963
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/settings')
-rw-r--r--packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java b/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
index 80e85f9..6d5bb9d 100644
--- a/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
+++ b/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
@@ -58,6 +58,7 @@ public class BrightnessController implements ToggleSlider.Listener {
new ArrayList<BrightnessStateChangeCallback>();
private boolean mAutomatic;
+ private boolean mListening;
public interface BrightnessStateChangeCallback {
public void onBrightnessLevelChanged();
@@ -159,6 +160,9 @@ public class BrightnessController implements ToggleSlider.Listener {
}
public void registerCallbacks() {
+ if (mListening) {
+ return;
+ }
mBrightnessObserver.startObserving();
mUserTracker.startTracking();
@@ -172,6 +176,9 @@ public class BrightnessController implements ToggleSlider.Listener {
/** Unregister all call backs, both to and from the controller */
public void unregisterCallbacks() {
+ if (!mListening) {
+ return;
+ }
mBrightnessObserver.stopObserving();
mChangeCallbacks.clear();
mUserTracker.stopTracking();