Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 379ac2d8 authored by Adrian Roos's avatar Adrian Roos Committed by Android (Google) Code Review
Browse files

Merge "Fix broken status bar when activity is showing above keyguard"

parents c8ba7d3f 25ab3d94
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ public class StatusBarKeyguardViewManager {
    private boolean mScreenOn = false;
    private KeyguardBouncer mBouncer;
    private boolean mShowing;
    private boolean mOccluded = false;

    public StatusBarKeyguardViewManager(Context context, ViewMediatorCallback callback,
            LockPatternUtils lockPatternUtils) {
@@ -102,9 +103,11 @@ public class StatusBarKeyguardViewManager {
    }

    public void showBouncer() {
        if (!mOccluded) {
            mBouncer.show();
            updateBackButtonState();
        }
    }

    /**
     * Reset the state of the view.
@@ -152,6 +155,13 @@ public class StatusBarKeyguardViewManager {
    }

    public void setOccluded(boolean occluded) {
        mOccluded = occluded;
        if (occluded) {
            mPhoneStatusBar.hideKeyguard();
            mBouncer.hide();
        } else {
            showBouncerOrKeyguard();
        }
        mStatusBarWindowManager.setKeyguardOccluded(occluded);
    }