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

Commit 1ec08fd3 authored by Danny Baumann's avatar Danny Baumann
Browse files

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

Change-Id: I00a351311d0933fe326bda33f5c988a6232cca16
parent 142766a6
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -598,7 +598,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();
    }

    /**