am f515c6f4
: Merge "Switch widget: Fix ON/OFF option update error"
* commit 'f515c6f4fe4457de1d5c49f78f9dcf6e4379e335': Switch widget: Fix ON/OFF option update error
This commit is contained in:
committed by
Android Git Automerger
commit
4ea6a8eb9f
@ -686,7 +686,7 @@ public class Switch extends CompoundButton {
|
||||
@Override
|
||||
public void setChecked(boolean checked) {
|
||||
super.setChecked(checked);
|
||||
mThumbPosition = checked ? getThumbScrollRange() : 0;
|
||||
mThumbPosition = isChecked() ? getThumbScrollRange() : 0;
|
||||
invalidate();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user