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

Commit 6f1f11f4 authored by Danny Baumann's avatar Danny Baumann
Browse files

Don't consider input restricted if keyguard is still disabled.

parent 52fbb5bb
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -606,7 +606,13 @@ public class KeyguardViewMediator implements KeyguardViewCallback,
     * was suppressed by an app that disabled the keyguard or we haven't been provisioned yet.
     */
    public boolean isInputRestricted() {
        return mShowing || mNeedToReshowWhenReenabled || !mUpdateMonitor.isDeviceProvisioned();
        if (mShowing) {
            return true;
        }
        if (mExternallyEnabled && mNeedToReshowWhenReenabled) {
            return true;
        }
        return !mUpdateMonitor.isDeviceProvisioned();
    }

    /**