Skip to content

Commit ba90379

Browse files
XSJoJoThe Android Automerger
authored andcommitted
Fix lockscreen occluded states #2.
Bug: 14656767 Bug: 14294001 Change-Id: Ibc428cbba8b48b6adc26756d8276a63183b8a690
1 parent 48ee942 commit ba90379

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ public void registerStatusBar(PhoneStatusBar phoneStatusBar,
7373
public void show(Bundle options) {
7474
mShowing = true;
7575
mStatusBarWindowManager.setKeyguardShowing(true);
76-
showBouncerOrKeyguard();
77-
updateStates();
76+
reset();
7877
}
7978

8079
/**
@@ -105,13 +104,15 @@ private void showBouncer() {
105104
* Reset the state of the view.
106105
*/
107106
public void reset() {
108-
if (mOccluded) {
109-
mPhoneStatusBar.hideKeyguard();
110-
mBouncer.hide();
111-
} else {
112-
showBouncerOrKeyguard();
107+
if (mShowing) {
108+
if (mOccluded) {
109+
mPhoneStatusBar.hideKeyguard();
110+
mBouncer.hide();
111+
} else {
112+
showBouncerOrKeyguard();
113+
}
114+
updateStates();
113115
}
114-
updateStates();
115116
}
116117

117118
public void onScreenTurnedOff() {
@@ -121,7 +122,6 @@ public void onScreenTurnedOff() {
121122

122123
public void onScreenTurnedOn(final IKeyguardShowCallback callback) {
123124
mScreenOn = true;
124-
reset();
125125
if (callback != null) {
126126
callbackAfterDraw(callback);
127127
}

0 commit comments

Comments
 (0)