From 80db54b915baccaf606abd1581d4cfb802579994 Mon Sep 17 00:00:00 2001 From: Beverly Date: Thu, 5 Aug 2021 17:33:16 -0400 Subject: 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 --- .../SystemUI/src/com/android/keyguard/LockIconViewController.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'packages/SystemUI/src/com/android/keyguard/LockIconViewController.java') 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 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; } -- cgit v1.2.3