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

Commit 41eecffa authored by Adrian Roos's avatar Adrian Roos
Browse files

AOD: Hide SIM PIN entry while dozing

Fixes an issue where the SIM pin entry was still showing
on AOD instead of being hidden while the device is off.

Change-Id: I1f0493b22818a817c2e519f7b4aa1c1df4be9a20
Test: Enable SIM PIN, reboot device, ensure that SIM PIN entry dialog is not showing on AOD.
Fixes: 62657496
parent 68e45991
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -152,7 +152,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
     * {@link KeyguardBouncer#needsFullscreenBouncer()}.
     */
    protected void showBouncerOrKeyguard(boolean hideBouncerWhenShowing) {
        if (mBouncer.needsFullscreenBouncer()) {
        if (mBouncer.needsFullscreenBouncer() && !mDozing) {

            // The keyguard might be showing (already). So we need to hide it.
            mStatusBar.hideKeyguard();
@@ -258,9 +258,12 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
    }

    public void setDozing(boolean dozing) {
        if (mDozing != dozing) {
            mDozing = dozing;
            reset(dozing /* hideBouncerWhenShowing */);
            updateStates();
        }
    }

    public void onScreenTurnedOff() {
        mScreenTurnedOn = false;