summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputViewController.java
diff options
context:
space:
mode:
authorMing-Shin Lu <lumark@google.com>2021-03-10 12:25:02 +0800
committerMing-Shin Lu <lumark@google.com>2021-03-15 20:31:37 +0800
commit4a550b3a10d08eb3f51624de341725e18e83ff33 (patch)
tree8b07db61d7e2004b434f9bd3cdfca3efc9dc676e /packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputViewController.java
parent7af62a210b501bb85a264cf49a8849f26901d747 (diff)
Improve IME hiding animation when uncloked by password
- Clean up KeyguardPasswordViewController#onPause to reset the state afer IME hiding animation finished. - Clean up startDisappearAnimation for IME WindowInsets animation and {begin, end}JankInstrument logic to make easier maintain. - Make sure invoking resetPasswordText only when the password is not match or after IME hiding animation finished to prevent unexpected show request by TextView#setText - > InputMethodManger#restartInput. Fix: 178385387 Test: manual as issue steps Test: atest KeyguardSecurityContainerControllerTest Change-Id: Ib0d481919dc3afe104eb45d668619c45377f9b29
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputViewController.java')
-rw-r--r--packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputViewController.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputViewController.java
index a580663cfa91..9f32c03d1de4 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputViewController.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputViewController.java
@@ -185,8 +185,8 @@ public abstract class KeyguardAbsKeyInputViewController<T extends KeyguardAbsKey
if (timeoutMs == 0) {
mMessageAreaController.setMessage(mView.getWrongPasswordStringId());
}
+ mView.resetPasswordText(true /* animate */, false /* announce deletion if no match */);
}
- mView.resetPasswordText(true /* animate */, !matched /* announce deletion if no match */);
}
protected void verifyPasswordAndUnlock() {