Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8df1a62 authored by Ravindra's avatar Ravindra
Browse files

Remove the incorrect message after 3 wrong PIN attempts

After 3 Fail attempts of SIM PIN entry "Incorrect PUK code"
will not be displayed. Remove logic as it is already present
in AOSP.

Change-Id: Ie83788a420c42e6b9b16fea6d2da155d161defc0
CRs-Fixed: 578936
parent 8e01404a
Loading
Loading
Loading
Loading
+1 −17
Original line number Diff line number Diff line
@@ -96,26 +96,10 @@ public class KeyguardSimPukView extends KeyguardAbsKeyInputView
        }

        void reset() {
            String  displayMessage = "";
            try {
                int attemptsRemaining = ITelephony.Stub.asInterface(ServiceManager
                        .checkService("phone")).getIccPin1RetryCount();
                if (attemptsRemaining >= 0) {
                    displayMessage = getContext().getString(
                            R.string.keyguard_password_wrong_puk_code)
                            + getContext().getString(R.string.pinpuk_attempts)
                            + attemptsRemaining + ". ";
                }
            } catch (RemoteException ex) {
                displayMessage = getContext().getString(
                        R.string.keyguard_password_puk_failed);
            }
            displayMessage = displayMessage
                    + getContext().getString(R.string.kg_puk_enter_puk_hint);
            mPinText="";
            mPukText="";
            state = ENTER_PUK;
            mSecurityMessageDisplay.setMessage(displayMessage, true);
            mSecurityMessageDisplay.setMessage(R.string.kg_puk_enter_puk_hint, true);
            mPasswordEntry.requestFocus();
        }
    }