diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2015-11-06 07:35:34 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-11-06 07:35:33 -0800 |
commit | 1d99a6a52bd7886d21d73416fab56ed3e4379127 (patch) | |
tree | 16fdde660a30470dedb1e186922b550860b74d8b /packages/Keyguard | |
parent | fc59213a04d76c8fd55e59e44ea0531f4334938a (diff) | |
parent | 18281968a799556a68abbb992adfd04c4cc754ff (diff) | |
download | frameworks_base-1d99a6a52bd7886d21d73416fab56ed3e4379127.zip frameworks_base-1d99a6a52bd7886d21d73416fab56ed3e4379127.tar.gz frameworks_base-1d99a6a52bd7886d21d73416fab56ed3e4379127.tar.bz2 |
Merge "SIM PIN Retry attempts display on Bootup."
Diffstat (limited to 'packages/Keyguard')
-rw-r--r-- | packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java index 9dcef3a..4322a5c 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java @@ -59,12 +59,7 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView { @Override public void onSimStateChanged(int subId, int slotId, State simState) { if (DEBUG) Log.v(TAG, "onSimStateChanged(subId=" + subId + ",state=" + simState + ")"); - switch (simState) { - case NOT_READY: - case ABSENT: - closeKeyGuard(); - break; - } + resetState(); }; }; @@ -255,7 +250,12 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView { } resetPasswordText(true /* animate */); if (result == PhoneConstants.PIN_RESULT_SUCCESS) { - closeKeyGuard(); + KeyguardUpdateMonitor.getInstance(getContext()) + .reportSimUnlocked(mSubId); + mRemainingAttempts = -1; + if (mCallback != null) { + mCallback.dismiss(true); + } } else { mShowDefaultMessage = false; if (result == PhoneConstants.PIN_PASSWORD_INCORRECT) { @@ -298,16 +298,6 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView { return false; } - private void closeKeyGuard() { - if (DEBUG) Log.d(TAG, "closeKeyGuard: Verification Completed, closing Keyguard."); - mRemainingAttempts = -1; - KeyguardUpdateMonitor.getInstance(getContext()) - .reportSimUnlocked(mSubId); - mCallback.dismiss(true); - mShowDefaultMessage = true; - reset(); - } - private void showDefaultMessage() { KeyguardUpdateMonitor monitor = KeyguardUpdateMonitor.getInstance(mContext); mSubId = monitor.getNextSubIdForState(IccCardConstants.State.PIN_REQUIRED); |