diff options
author | Lucas Dupin <dupin@google.com> | 2018-05-10 15:31:20 -0700 |
---|---|---|
committer | Lucas Dupin <dupin@google.com> | 2018-05-11 09:22:39 -0700 |
commit | 29e796d26a840b5ba364f0895d33154ccbbcb721 (patch) | |
tree | a4af85851f22ca74767fc80629ddeaaf1a68c8f0 /packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputView.java | |
parent | 91d2f87d0eef6e5445b1152f24ec708764e703d4 (diff) |
Do not hide keyguard message when fp
Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardPinBasedInputViewTest.java
Change-Id: I5d76b688b0eb7c1df6a36c1cb910f2b0ec98bc46
Fixes: 78235570
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputView.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputView.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputView.java index 00cd5a7b1689..48b413456755 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputView.java @@ -246,7 +246,12 @@ public abstract class KeyguardAbsKeyInputView extends LinearLayout @Override public boolean onKeyDown(int keyCode, KeyEvent event) { - onUserInput(); + // Fingerprint sensor sends a KeyEvent.KEYCODE_UNKNOWN. + // We don't want to consider it valid user input because the UI + // will already respond to the event. + if (keyCode != KeyEvent.KEYCODE_UNKNOWN) { + onUserInput(); + } return false; } |