private CheckSimPin mCheckSimPinThread;
private boolean mShowDefaultMessage = true;
private int mRemainingAttempts = -1;
+ private int mResult = PhoneConstants.PIN_PASSWORD_INCORRECT;
private AlertDialog mRemainingAttemptsDialog;
private int mSubId;
private int mSlotId;
@Override
public void run() {
mRemainingAttempts = attemptsRemaining;
+ mResult = result;
if (mSimUnlockProgressDialog != null) {
mSimUnlockProgressDialog.hide();
}
if (result == PhoneConstants.PIN_RESULT_SUCCESS) {
KeyguardUpdateMonitor.getInstance(getContext())
.reportSimUnlocked(mSubId);
+ mResult = PhoneConstants.PIN_PASSWORD_INCORRECT;
mRemainingAttempts = -1;
mShowDefaultMessage = true;
if (mCallback != null) {
return;
}
if (mRemainingAttempts >= 0) {
- mSecurityMessageDisplay.setMessage(getPinPasswordErrorMessage(
- mRemainingAttempts, true), true);
+ if (mResult != PhoneConstants.PIN_RESULT_SUCCESS)
+ mSecurityMessageDisplay.setMessage(
+ getPinPasswordErrorMessage(mRemainingAttempts, true),
+ true);
return;
}
" attemptsRemaining=" + attemptsRemaining);
if (attemptsRemaining >= 0) {
mRemainingAttempts = attemptsRemaining;
+ mResult = result;
mSecurityMessageDisplay.setMessage(
getPinPasswordErrorMessage(attemptsRemaining, true), true);
}