[LockScreen] Update initial string in choose lock screens

In choose password and PIN screens, change the initial string from
duplicate of the title ("Choose your password/PIN") to the
verification string ("PIN must be at least ? digits" / "Password must
be at least ? characters").

Bug: 20948877
Change-Id: I635ec625f2820e522cdfc983e13ee71706e7004e
This commit is contained in:
Maurice Lam
2015-05-19 17:27:12 -07:00
parent cb5444ad2c
commit 163dee9fb7

View File

@@ -598,7 +598,7 @@ public class ChooseLockPassword extends SettingsActivity {
private void updateUi() { private void updateUi() {
String password = mPasswordEntry.getText().toString(); String password = mPasswordEntry.getText().toString();
final int length = password.length(); final int length = password.length();
if (mUiStage == Stage.Introduction && length > 0) { if (mUiStage == Stage.Introduction) {
if (length < mPasswordMinLength) { if (length < mPasswordMinLength) {
String msg = getString(mIsAlphaMode ? R.string.lockpassword_password_too_short String msg = getString(mIsAlphaMode ? R.string.lockpassword_password_too_short
: R.string.lockpassword_pin_too_short, mPasswordMinLength); : R.string.lockpassword_pin_too_short, mPasswordMinLength);