diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitch.java b/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitch.java index fc716387770..dbbffb4bd78 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitch.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitch.java @@ -37,6 +37,11 @@ import javax.annotation.Nullable; mAllowChange = false; super.setChecked(checked); setTrackColor(checked); + } else { + // Even if mAllowChange is set to false or the checked value hasn't changed, we still must + // call the super method, since it will make sure the thumb is moved back to the correct edge. + // Without calling the super method, the thumb might stuck in the middle of the switch. + super.setChecked(isChecked()); } }