Provide useful hint when invalid SIM PIN is entered during changing SIM PIN

Bug: 241441049
Test: Manually tested with Pixel 6 Pro

Change-Id: Ie7239ad397dfeacd59f1483953392ee7935cfd07
This commit is contained in:
Thomas Nguyen
2022-08-02 18:24:19 +00:00
parent 99de6b6693
commit a2b0146d07
2 changed files with 3 additions and 3 deletions

View File

@@ -3231,8 +3231,8 @@
<string name="sim_reenter_new">Re\u2011type new PIN</string> <string name="sim_reenter_new">Re\u2011type new PIN</string>
<!-- SIM card lock settings screen, SIM PIN dialog message instruction [CHAR LIMIT=40] --> <!-- SIM card lock settings screen, SIM PIN dialog message instruction [CHAR LIMIT=40] -->
<string name="sim_change_pin">SIM PIN</string> <string name="sim_change_pin">SIM PIN</string>
<!-- SIM card lock settings screen, SIM PIN dialog message when wrong PIN is entered [CHAR LIMIT=40] --> <!-- SIM card lock settings screen, SIM PIN dialog message when invalid PIN is entered [CHAR LIMIT=40] -->
<string name="sim_bad_pin">Incorrect PIN</string> <string name="sim_invalid_pin_hint">Type a PIN that is 4 to 8 numbers</string>
<!-- SIM card lock settings screen, SIM PIN dialog message when PINs don't match [CHAR LIMIT=40] --> <!-- SIM card lock settings screen, SIM PIN dialog message when PINs don't match [CHAR LIMIT=40] -->
<string name="sim_pins_dont_match">PINs don\u2019t match</string> <string name="sim_pins_dont_match">PINs don\u2019t match</string>
<!-- SIM card lock settings screen, toast after not entering correct SIM PIN [CHAR LIMIT=40] --> <!-- SIM card lock settings screen, toast after not entering correct SIM PIN [CHAR LIMIT=40] -->

View File

@@ -476,7 +476,7 @@ public class IccLockSettings extends SettingsPreferenceFragment
mPin = preference.getText(); mPin = preference.getText();
if (!reasonablePin(mPin)) { if (!reasonablePin(mPin)) {
// inject error message and display dialog again // inject error message and display dialog again
mError = mRes.getString(R.string.sim_bad_pin); mError = mRes.getString(R.string.sim_invalid_pin_hint);
showPinDialog(); showPinDialog();
return; return;
} }