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

Commit fbee79e0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Remove the incorrect message after 3 wrong PIN attempts"

parents 5dc1f5ff a8df1a62
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();
        }
    }