OSDN Git Service

ChooseLockPassword should not show "confirm" until min length is met
authorKevin Chyn <kchyn@google.com>
Thu, 1 Mar 2018 01:52:34 +0000 (17:52 -0800)
committerKevin Chyn <kchyn@google.com>
Thu, 1 Mar 2018 01:52:34 +0000 (17:52 -0800)
Fixes: 70561465

Test: manual test with setting pin/pw
Change-Id: I545202f508fa7b1a73b9a2e66a8f8216deba7555

src/com/android/settings/password/ChooseLockPassword.java

index 14c8877..38fdbce 100644 (file)
@@ -885,7 +885,7 @@ public class ChooseLockPassword extends SettingsActivity {
                 // Hide password requirement view when we are just asking user to confirm the pw.
                 mPasswordRestrictionView.setVisibility(View.GONE);
                 setHeaderText(getString(mUiStage.getHint(mIsAlphaMode, mForFingerprint)));
-                setNextEnabled(canInput && length > 0);
+                setNextEnabled(canInput && length >= mPasswordMinLength);
                 mClearButton.setEnabled(canInput && length > 0);
             }
             int message = mUiStage.getMessage(mIsAlphaMode, mForFingerprint);