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

Commit 964474de authored by Danny Baumann's avatar Danny Baumann Committed by Gerrit Code Review
Browse files

Merge "Don't consider input restricted if keyguard is still disabled." into ics

parents ca0d4b92 1ec08fd3
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();
    }

    /**