Skip to content

Commit

Permalink
Fix lockscreen occluded states #2.
Browse files Browse the repository at this point in the history
Bug: 14656767
Bug: 14294001
Change-Id: Ibc428cbba8b48b6adc26756d8276a63183b8a690
  • Loading branch information
XSJoJo authored and The Android Automerger committed May 9, 2014
1 parent 48ee942 commit ba90379
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ public void registerStatusBar(PhoneStatusBar phoneStatusBar,
public void show(Bundle options) {
mShowing = true;
mStatusBarWindowManager.setKeyguardShowing(true);
showBouncerOrKeyguard();
updateStates();
reset();
}

/**
Expand Down Expand Up @@ -105,13 +104,15 @@ private void showBouncer() {
* Reset the state of the view.
*/
public void reset() {
if (mOccluded) {
mPhoneStatusBar.hideKeyguard();
mBouncer.hide();
} else {
showBouncerOrKeyguard();
if (mShowing) {
if (mOccluded) {
mPhoneStatusBar.hideKeyguard();
mBouncer.hide();
} else {
showBouncerOrKeyguard();
}
updateStates();
}
updateStates();
}

public void onScreenTurnedOff() {
Expand All @@ -121,7 +122,6 @@ public void onScreenTurnedOff() {

public void onScreenTurnedOn(final IKeyguardShowCallback callback) {
mScreenOn = true;
reset();
if (callback != null) {
callbackAfterDraw(callback);
}
Expand Down

0 comments on commit ba90379

Please sign in to comment.