diff options
author | Dave Mankoff <mankoff@google.com> | 2020-12-15 12:23:37 -0500 |
---|---|---|
committer | Dave Mankoff <mankoff@google.com> | 2021-01-05 15:57:54 -0500 |
commit | 7860852d3b2c1a52cbfb31403951a316fceb3d2d (patch) | |
tree | a82197cfd0c3a8016abd625897a9ba746fb3ba3c /packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java | |
parent | 8848abd1b5690ab922254ce5401bb6691f771548 (diff) |
Connect FalsingManager to HistoryTracker.
With this change, the analysis of gestures actually gets added to our
HistoryTracker. Prior to this, HistoryTracker was only ever being
exercised in tests.
The one trick that this addresses is that invalid single-taps can't
immediately be added to the HistoryTracker, as they may become
_valid_ double taps. We don't want double taps to be penalized.
Bug: 172655679
Test: atest SystemUITests
Change-Id: I2e5ece6af82eb20f053b6b17298dcd9002236e39
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java index df8709c12442..f2479488db0f 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java @@ -121,6 +121,12 @@ public abstract class KeyguardPinBasedInputViewController<T extends KeyguardPinB } @Override + protected void onViewDetached() { + super.onViewDetached(); + mView.removeMotionEventListener(mGlobalTouchListener); + } + + @Override public void onResume(int reason) { super.onResume(reason); mPasswordEntry.requestFocus(); |