diff options
author | Beverly <beverlyt@google.com> | 2021-08-05 17:33:16 -0400 |
---|---|---|
committer | Beverly <beverlyt@google.com> | 2021-08-05 17:33:16 -0400 |
commit | 80db54b915baccaf606abd1581d4cfb802579994 (patch) | |
tree | b87941ab81a826a81b1604ac355a2c7753293529 /packages/SystemUI/src/com/android/keyguard/LockIconViewController.java | |
parent | e8310817afcbdec92f687cc3dfd03563ae8dc4db (diff) |
Consider swipes on the unlock icon as intent for device entry
Similar to how taps and longpresses are handled, swipes on the
unlock icon will also enter the device.
Test: manually swipe on unlock icon and see device entry
Bug: 195664144
Change-Id: I1fa40c461ce1476b6b1369ad9ac1759165d67740
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/LockIconViewController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/LockIconViewController.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java index 4317e258d8f7..509ac8a6d9fe 100644 --- a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java @@ -514,7 +514,15 @@ public class LockIconViewController extends ViewController<LockIconView> impleme if (!wasClickableOnDownEvent()) { return false; } + onAffordanceClick(); + return true; + } + public boolean onFling(MotionEvent e1, MotionEvent e2, + float velocityX, float velocityY) { + if (!wasClickableOnDownEvent()) { + return false; + } onAffordanceClick(); return true; } |