diff options
| -rw-r--r-- | core/java/android/widget/Switch.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/widget/Switch.java b/core/java/android/widget/Switch.java index e672fc38e65c..9319af0627e1 100644 --- a/core/java/android/widget/Switch.java +++ b/core/java/android/widget/Switch.java @@ -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); } |