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

Commit ba54dd4e authored by Adnan Begovic's avatar Adnan Begovic
Browse files

Keyguard: Clarify error message on bad input length.

  If the input is shorter than the minimum requirement for
  PUK, then we need to alert the user with a more clarified
  error rather than simple text.

  TICKET: SAMBAR-587

Change-Id: I6bcf932b735891d763db54d6ba53ab7b538de720
parent aabd1e49
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -26,4 +26,7 @@
        <item quantity="one">Enter SIM PIN, you have <xliff:g id="number">%d</xliff:g> remaining attempt before you must contact your carrier to unlock your device.</item>
        <item quantity="other">Enter SIM PIN, you have <xliff:g id="number">%d</xliff:g> remaining attempts.</item>
    </plurals>

    <!-- Shown in the KeyguardSimPinView when entry length is too short. -->
    <string name="kg_invalid_sim_length">Error: Input shorter than minimum length</string>
</resources>
+1 −1
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView {

        if (entry.length() < 4) {
            // otherwise, display a message to the user, and don't submit.
            mSecurityMessageDisplay.setMessage(R.string.kg_invalid_sim_pin_hint, true);
            mSecurityMessageDisplay.setMessage(R.string.kg_invalid_sim_length, true);
            resetPasswordText(true);
            mCallback.userActivity();
            return;