OSDN Git Service

[LockScreen] Update initial string in choose lock screens
authorMaurice Lam <yukl@google.com>
Wed, 20 May 2015 00:27:12 +0000 (17:27 -0700)
committerMaurice Lam <yukl@google.com>
Wed, 20 May 2015 00:27:12 +0000 (17:27 -0700)
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

src/com/android/settings/ChooseLockPassword.java

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