Clear "Wrong pattern" prompt automatically.
When the user enters a wrong pattern/pin/password, a "Wrong pattern/pin/password" text shows up on ConfirmLockPattern or ConfirmLockPassword screen. In ConfirmLockPassword, it disappears automatically after 3 seconds, whereas it doesn't in ConfirmLockPattern. In this change, we make the prompt in ConfirmLockPattern disappear automatically as well. Bug: 64781905 Test: manual Test: make RunSettingsRoboTests Change-Id: I53a25576413671ced4197064d51fbcc397733265
This commit is contained in:
@@ -93,7 +93,6 @@ public class ConfirmLockPassword extends ConfirmDeviceCredentialBaseActivity {
|
||||
public static class ConfirmLockPasswordFragment extends ConfirmDeviceCredentialBaseFragment
|
||||
implements OnClickListener, OnEditorActionListener,
|
||||
CredentialCheckResultTracker.Listener {
|
||||
private static final long ERROR_MESSAGE_TIMEOUT = 3000;
|
||||
private static final String FRAGMENT_TAG_CHECK_LOCK_RESULT = "check_lock_result";
|
||||
private ImeAwareEditText mPasswordEntry;
|
||||
private TextViewInputDisabler mPasswordEntryInputDisabler;
|
||||
@@ -460,7 +459,7 @@ public class ConfirmLockPassword extends ConfirmDeviceCredentialBaseActivity {
|
||||
effectiveUserId, timeoutMs);
|
||||
handleAttemptLockout(deadline);
|
||||
} else {
|
||||
showError(getErrorMessage(), ERROR_MESSAGE_TIMEOUT);
|
||||
showError(getErrorMessage(), CLEAR_WRONG_ATTEMPT_TIMEOUT_MS);
|
||||
}
|
||||
if (newResult) {
|
||||
reportFailedAttempt();
|
||||
|
Reference in New Issue
Block a user