diff options
author | Roman Birg <roman@cyngn.com> | 2016-02-08 18:56:33 -0800 |
---|---|---|
committer | Roman Birg <roman@cyngn.com> | 2016-02-08 19:00:24 -0800 |
commit | 7829f8b163f80cc76500a6e7440d82f2cd001ab7 (patch) | |
tree | c970ad4111efc60cf0687304f0eb1d0ab73b6ca0 /packages/SystemUI | |
parent | 61cdfc02db3594dca416b96548a39da552b44b5a (diff) | |
download | frameworks_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')
-rwxr-xr-x | packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java | 3 |
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(); |