summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriele M <moto.falcon.git@gmail.com>2017-03-13 22:49:18 +0100
committeralk3pInjection <webmaster@raspii.tech>2022-01-26 11:42:56 +0800
commitd2531db095330e195fdae4e7371f2d5da2528240 (patch)
treea07fc526f024ef084ae29f2e610b449df6908551
parent4e8c9988adcdf8f291c67ad3ededd98367a35512 (diff)
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
-rw-r--r--packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
index 78f77dadb200..64721761206a 100644
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
@@ -1569,6 +1569,8 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable,
if (mLockPatternUtils.isLockScreenDisabled(KeyguardUpdateMonitor.getCurrentUser())
&& !lockedOrMissing && !forceShow) {
if (DEBUG) Log.d(TAG, "doKeyguard: not showing because lockscreen is off");
+ setShowingLocked(false, mAodShowing);
+ hideLocked();
return;
}