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

Commit 74df8e34 authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

Merge "Flingable switches"

parents dd93a792 01d11edc
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();
            }