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

Commit 4532fb67 authored by Gabriele M's avatar Gabriele M Committed by Bruno Martins
Browse files

SystemUI: Dismiss keyguard on boot if disabled by current profile

Properly dismiss keyguard on boot if the current profile has it
disabled, otherwise we will just show a black screen with just the
status bar and a navbar with only the back button.

BUGBASH-87

Change-Id: I14ed10ae9db40c32be22c1fb43f8a1719787d91b
parent 15c560d6
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1816,6 +1816,8 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
            if (mLockPatternUtils.isLockScreenDisabled(KeyguardUpdateMonitor.getCurrentUser())
            if (mLockPatternUtils.isLockScreenDisabled(KeyguardUpdateMonitor.getCurrentUser())
                    && !lockedOrMissing && !forceShow) {
                    && !lockedOrMissing && !forceShow) {
                if (DEBUG) Log.d(TAG, "doKeyguard: not showing because lockscreen is off");
                if (DEBUG) Log.d(TAG, "doKeyguard: not showing because lockscreen is off");
                setShowingLocked(false, mAodShowing);
                hideLocked();
                return;
                return;
            }
            }
        }
        }