commit | 5d6957ea79e6025663106a31bb83232610c1e502 | [log] [tgz] |
---|---|---|
author | Jorim Jaggi <jjaggi@google.com> | Mon May 26 02:15:06 2014 +0200 |
committer | Jorim Jaggi <jjaggi@google.com> | Mon May 26 16:17:51 2014 +0200 |
tree | bf521dc0f6fb5e028233ab2b73daa34972a164dd | |
parent | 5b5cbd13d8474db1176d50a4c3b3476026c006a7 [diff] |
Disable time and user switcher click targets when collapsed Bug: 15125632 Change-Id: Ibdeeb47a696a574204b02b90ce6881cd78047738
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java index 3ead5df..3245f1a 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java
@@ -134,6 +134,7 @@ updateSystemIconsLayoutParams(); updateBrightnessControllerState(); updateZTranslation(); + updateClickTargets(); if (mQSPanel != null) { mQSPanel.setExpanded(expanded); } @@ -208,6 +209,11 @@ } } + private void updateClickTargets() { + mDateTime.setClickable(mExpanded); + mMultiUserSwitch.setClickable(mExpanded); + } + private void updateZTranslation() { // If we are on the Keyguard, we need to set our z position to zero, so we don't get