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

Commit b2212763 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 gingerbread

parents 2861d6fe 6f1f11f4
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();
    }

    /**