diff options
author | Fred Quintana <fredq@google.com> | 2009-08-19 13:13:18 -0700 |
---|---|---|
committer | Fred Quintana <fredq@google.com> | 2009-08-20 13:52:22 -0700 |
commit | e0616ffb741b64e3bc7a1e3ad9def3d50eee53fd (patch) | |
tree | 36beef758104791c49182db6cf4499d5ba885bcb /core/java/android/preference | |
parent | 9e61acd9ff267fe9fdbcd130905bdd63ff70db3a (diff) | |
download | frameworks_base-e0616ffb741b64e3bc7a1e3ad9def3d50eee53fd.zip frameworks_base-e0616ffb741b64e3bc7a1e3ad9def3d50eee53fd.tar.gz frameworks_base-e0616ffb741b64e3bc7a1e3ad9def3d50eee53fd.tar.bz2 |
add a supportsUploading flag in the SyncAdapter description and honor it in the SyncManager
Diffstat (limited to 'core/java/android/preference')
-rw-r--r-- | core/java/android/preference/CheckBoxPreference.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/core/java/android/preference/CheckBoxPreference.java b/core/java/android/preference/CheckBoxPreference.java index cf5664c..f16a7e4 100644 --- a/core/java/android/preference/CheckBoxPreference.java +++ b/core/java/android/preference/CheckBoxPreference.java @@ -149,14 +149,12 @@ public class CheckBoxPreference extends Preference { * @param checked The checked state. */ public void setChecked(boolean checked) { - - mChecked = checked; - - persistBoolean(checked); - - notifyDependencyChange(shouldDisableDependents()); - - notifyChanged(); + if (mChecked != checked) { + mChecked = checked; + persistBoolean(checked); + notifyDependencyChange(shouldDisableDependents()); + notifyChanged(); + } } /** |