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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user