diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-08-20 14:28:32 -0700 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-08-20 14:28:33 -0700 |
commit | f515c6f4fe4457de1d5c49f78f9dcf6e4379e335 (patch) | |
tree | 648f89de13fc75bd4e229e841693ab13bf76704d /core | |
parent | f029c22f82573e7fee7c7e0cca4439fe78300bac (diff) | |
parent | ca13b1562cedafb17a4f116fb521ed5388423755 (diff) | |
download | frameworks_base-f515c6f4fe4457de1d5c49f78f9dcf6e4379e335.zip frameworks_base-f515c6f4fe4457de1d5c49f78f9dcf6e4379e335.tar.gz frameworks_base-f515c6f4fe4457de1d5c49f78f9dcf6e4379e335.tar.bz2 |
Merge "Switch widget: Fix ON/OFF option update error"
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/widget/Switch.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/Switch.java b/core/java/android/widget/Switch.java index 471f259..9ea1372 100644 --- a/core/java/android/widget/Switch.java +++ b/core/java/android/widget/Switch.java @@ -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(); } |