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

Commit 4ea6a8eb authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am f515c6f4: Merge "Switch widget: Fix ON/OFF option update error"

* commit 'f515c6f4':
  Switch widget: Fix ON/OFF option update error
parents 7d5b22af f515c6f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -686,7 +686,7 @@ public class Switch extends CompoundButton {
    @Override
    @Override
    public void setChecked(boolean checked) {
    public void setChecked(boolean checked) {
        super.setChecked(checked);
        super.setChecked(checked);
        mThumbPosition = checked ? getThumbScrollRange() : 0;
        mThumbPosition = isChecked() ? getThumbScrollRange() : 0;
        invalidate();
        invalidate();
    }
    }