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

Commit f515c6f4 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by android code review
Browse files

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

parents f029c22f ca13b156
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -675,7 +675,7 @@ public class Switch extends CompoundButton {
    @Override
    public void setChecked(boolean checked) {
        super.setChecked(checked);
        mThumbPosition = checked ? getThumbScrollRange() : 0;
        mThumbPosition = isChecked() ? getThumbScrollRange() : 0;
        invalidate();
    }