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:
@@ -77,6 +77,9 @@ public abstract class ConfirmDeviceCredentialBaseFragment extends OptionsMenuFra
|
||||
protected static final int USER_TYPE_MANAGED_PROFILE = 2;
|
||||
protected static final int USER_TYPE_SECONDARY = 3;
|
||||
|
||||
/** Time we wait before clearing a wrong input attempt (e.g. pattern) and the error message. */
|
||||
protected static final long CLEAR_WRONG_ATTEMPT_TIMEOUT_MS = 3000;
|
||||
|
||||
private FingerprintUiHelper mFingerprintHelper;
|
||||
protected boolean mReturnCredentials = false;
|
||||
protected Button mCancelButton;
|
||||
|
Reference in New Issue
Block a user