summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2014-05-13 21:55:18 +0200
committerJorim Jaggi <jjaggi@google.com>2014-05-13 22:17:23 +0200
commit2042ef2390d32773fb196044229c3842b96bde1c (patch)
tree31b843ca4fe9df787fca8e1ebad0daf768c31182 /packages/SystemUI/src
parentc9a52ab01faf7428b44e760becbfb4c157eb9042 (diff)
downloadframeworks_base-2042ef2390d32773fb196044229c3842b96bde1c.zip
frameworks_base-2042ef2390d32773fb196044229c3842b96bde1c.tar.gz
frameworks_base-2042ef2390d32773fb196044229c3842b96bde1c.tar.bz2
Keep QS header appearance and unlock icon in SHADE_LOCKED.
Also goes to shade locked when the user doesn't have a security pattern at all, to keep the appearance as close as possible when expanding a notification. Change-Id: I7af899df545ff8cefedc8be8feebd769bdadcfa9
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java20
1 files changed, 9 insertions, 11 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
index 4d09d6a..e7da4f9 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -2704,18 +2704,21 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
private void updateKeyguardState() {
if (mState == StatusBarState.KEYGUARD) {
mKeyguardStatusView.setVisibility(View.VISIBLE);
- mKeyguardBottomArea.setVisibility(View.VISIBLE);
mKeyguardIndicationTextView.setVisibility(View.VISIBLE);
mKeyguardIndicationTextView.switchIndication(mKeyguardHotwordPhrase);
-
mNotificationPanel.closeQs();
} else {
mKeyguardStatusView.setVisibility(View.GONE);
- mKeyguardBottomArea.setVisibility(View.GONE);
mKeyguardIndicationTextView.setVisibility(View.GONE);
}
mSettingsContainer.setKeyguardShowing(mState == StatusBarState.KEYGUARD);
- mHeader.setKeyguardShowing(mState == StatusBarState.KEYGUARD);
+ if (mState == StatusBarState.KEYGUARD || mState == StatusBarState.SHADE_LOCKED) {
+ mKeyguardBottomArea.setVisibility(View.VISIBLE);
+ mHeader.setKeyguardShowing(true);
+ } else {
+ mKeyguardBottomArea.setVisibility(View.GONE);
+ mHeader.setKeyguardShowing(false);
+ }
updateStackScrollerState();
updatePublicMode();
@@ -2841,9 +2844,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
/**
* If secure with redaction: Show bouncer, go to unlocked shade.
*
- * <p>If secure without redaction: Go to {@link StatusBarState#SHADE_LOCKED}.</p>
- *
- * <p>Otherwise go directly to unlocked shade.</p>
+ * <p>If secure without redaction or no security: Go to {@link StatusBarState#SHADE_LOCKED}.</p>
*
* @param expandView The view to expand after going to the shade.
*/
@@ -2855,13 +2856,10 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
if (isLockscreenPublicMode() && !userAllowsPrivateNotificationsInPublic(mCurrentUserId)) {
mLeaveOpenOnKeyguardHide = true;
showBouncer();
- } else if (mStatusBarKeyguardViewManager.isSecure()) {
+ } else {
mNotificationPanel.animateNextTopPaddingChange();
setBarState(StatusBarState.SHADE_LOCKED);
updateKeyguardState();
- } else {
- mLeaveOpenOnKeyguardHide = true;
- mStatusBarKeyguardViewManager.dismiss();
}
}