diff options
author | Roman Birg <roman@cyngn.com> | 2016-05-24 09:18:43 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-05-25 09:57:51 -0700 |
commit | 955c97f89088cb93984721412d4c44a3638303a6 (patch) | |
tree | da7a003d142540eb3b06c8a50c26e2d7aec191d6 /packages | |
parent | d1bac5bc85cba12f9ccda02840b009b3c2826d55 (diff) | |
download | frameworks_base-955c97f89088cb93984721412d4c44a3638303a6.zip frameworks_base-955c97f89088cb93984721412d4c44a3638303a6.tar.gz frameworks_base-955c97f89088cb93984721412d4c44a3638303a6.tar.bz2 |
SystemUI: improve keyguard with SIM PIN interactions
- Dismiss heads up popups when PIN is required, it would block input as
the new PUK screen would pop up
- Also dismiss the PUK screen when the SIM is removed
Ticket: CYNGNOS-2843
Change-Id: Id42626faaa563215b128d7c830793d9908e5282d
Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'packages')
-rwxr-xr-x | packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java | 17 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 6 |
2 files changed, 14 insertions, 9 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java index 166b25c..7d09c91 100755 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java @@ -484,21 +484,20 @@ public class KeyguardViewMediator extends SystemUI { // only force lock screen in case of missing sim if user hasn't // gone through setup wizard synchronized (this) { - if (shouldWaitForProvisioning()) { - if (!mShowing) { - if (DEBUG_SIM_STATES) Log.d(TAG, "ICC_ABSENT isn't showing," - + " we need to show the keyguard since the " - + "device isn't provisioned yet."); - doKeyguardLocked(null); - } else { - resetStateLocked(); - } + if (shouldWaitForProvisioning() && !mShowing) { + if (DEBUG_SIM_STATES) Log.d(TAG, "ICC_ABSENT isn't showing," + + " we need to show the keyguard since the " + + "device isn't provisioned yet."); + doKeyguardLocked(null); + } else { + resetStateLocked(); } } break; case PIN_REQUIRED: case PUK_REQUIRED: synchronized (this) { + mStatusBar.hideHeadsUp(); if (!mShowing) { if (DEBUG_SIM_STATES) Log.d(TAG, "INTENT_VALUE_ICC_LOCKED and keygaurd isn't " diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index 0bbcc3a..96a84dd 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -3721,6 +3721,12 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } } + public void hideHeadsUp() { + if (mUseHeadsUp && mHeadsUpManager != null) { + mHeadsUpManager.releaseAllImmediately(); + } + } + private void setControllerUsers() { if (mZenModeController != null) { mZenModeController.setUserId(mCurrentUserId); |