summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2016-02-08 18:56:33 -0800
committerRoman Birg <roman@cyngn.com>2016-02-08 19:00:24 -0800
commit7829f8b163f80cc76500a6e7440d82f2cd001ab7 (patch)
treec970ad4111efc60cf0687304f0eb1d0ab73b6ca0 /packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
parent61cdfc02db3594dca416b96548a39da552b44b5a (diff)
downloadframeworks_base-7829f8b163f80cc76500a6e7440d82f2cd001ab7.zip
frameworks_base-7829f8b163f80cc76500a6e7440d82f2cd001ab7.tar.gz
frameworks_base-7829f8b163f80cc76500a6e7440d82f2cd001ab7.tar.bz2
SystemUI: respect profile after unlocking SIM PIN
We should hide the keyguard after the user has input their SIM PIN if the profile (or ourselves) say so. Ref: CYNGNOS-1930 Change-Id: I6cb1478eebd4442346c4c0970729fbf7450b156c Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java')
-rwxr-xr-xpackages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
index 4042ef9..549da3b 100755
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
@@ -516,7 +516,8 @@ public class KeyguardViewMediator extends SystemUI {
break;
case READY:
synchronized (this) {
- if (mInternallyDisabled && !mUpdateMonitor.isSimPinSecure()) {
+ if ((mInternallyDisabled || isProfileDisablingKeyguard())
+ && !mUpdateMonitor.isSimPinSecure()) {
hideLocked();
} else if (mShowing) {
resetStateLocked();