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

Commit 01d11edc authored by Adam Powell's avatar Adam Powell
Browse files

Flingable switches

Change-Id: I640656358cf28569242d900d41493a69845f7305
parent 95b0292f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -489,7 +489,7 @@ public class Switch extends CompoundButton {
            mVelocityTracker.computeCurrentVelocity(1000);
            float xvel = mVelocityTracker.getXVelocity();
            if (Math.abs(xvel) > mMinFlingVelocity) {
                newState = xvel < 0;
                newState = xvel > 0;
            } else {
                newState = getTargetCheckedState();
            }