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
This commit is contained in:
Beverly
2021-08-05 17:33:16 -04:00
parent e8310817af
commit 80db54b915

View File

@@ -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;
}