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

Commit 42a5284c authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Always set switch state following drag"

parents 6fc6195f 03306a0b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1026,9 +1026,9 @@ public class Switch extends CompoundButton {

        if (newState != oldState) {
            playSoundEffect(SoundEffectConstants.CLICK);
            setChecked(newState);
        }

        // Always call setChecked so that the thumb is moved back to the correct edge
        setChecked(newState);
        cancelSuperTouch(ev);
    }