Disable time and user switcher click targets when collapsed

Bug: 15125632
Change-Id: Ibdeeb47a696a574204b02b90ce6881cd78047738
This commit is contained in:
Jorim Jaggi
2014-05-26 02:15:06 +02:00
parent 5b5cbd13d8
commit 5d6957ea79

View File

@@ -134,6 +134,7 @@ public class StatusBarHeaderView extends RelativeLayout implements View.OnClickL
updateSystemIconsLayoutParams();
updateBrightnessControllerState();
updateZTranslation();
updateClickTargets();
if (mQSPanel != null) {
mQSPanel.setExpanded(expanded);
}
@@ -208,6 +209,11 @@ public class StatusBarHeaderView extends RelativeLayout implements View.OnClickL
}
}
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