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

Commit 5292a65a authored by Danny Baumann's avatar Danny Baumann
Browse files

Don't consider input restricted when the lockscreen is disabled by an

app.

Fixes the secure lockscreen occasionally appearing when disabling the
lockscreen via tile.

Change-Id: I078584d0235c1cc958f89ce12ddf3cc1117a5687
parent 9e3fa9cb
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -861,11 +861,10 @@ public class KeyguardViewMediator {

    /**
     * Given the state of the keyguard, is the input restricted?
     * Input is restricted when the keyguard is showing, or when the keyguard
     * was suppressed by an app that disabled the keyguard or we haven't been provisioned yet.
     * Input is restricted when the keyguard is showing or we haven't been provisioned yet.
     */
    public boolean isInputRestricted() {
        return mShowing || mNeedToReshowWhenReenabled || !mUpdateMonitor.isDeviceProvisioned();
        return mShowing || !mUpdateMonitor.isDeviceProvisioned();
    }

    private void doKeyguardLocked() {