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

Commit 03306a0b authored by Alan Viverette's avatar Alan Viverette
Browse files

Always set switch state following drag

Bug: 23029815
Change-Id: Ic291803f02cab2a9ccb96622ac0569e1c78c7291
parent 456c7a76
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1026,9 +1026,9 @@ public class Switch extends CompoundButton {


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

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