Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80db54b9 authored by Beverly's avatar Beverly
Browse files

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
parent e8310817
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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;
                }