summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/location/GeocoderProxy.java
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2012-08-10 14:20:14 -0700
committerAdam Powell <adamp@google.com>2012-08-10 14:36:53 -0700
commitc1b07211b8a2a1eebefa8e5403ca7b2c6ccdccc6 (patch)
tree2d69be53ebd786dae508928d277b9a88ec4b95ed /services/java/com/android/server/location/GeocoderProxy.java
parent9252dbd314bbce75f1e57330c5a911c9f6428cf5 (diff)
downloadframeworks_base-c1b07211b8a2a1eebefa8e5403ca7b2c6ccdccc6.zip
frameworks_base-c1b07211b8a2a1eebefa8e5403ca7b2c6ccdccc6.tar.gz
frameworks_base-c1b07211b8a2a1eebefa8e5403ca7b2c6ccdccc6.tar.bz2
Don't assume a default of 'false' for TwoStatePreference
TwoStatePreference would treat a default value of false as having no effect since it matched the initial value of the internal field. This caused asymmetric behavior around persistence and listener notification when the default was true (persisted) vs. false (not persisted). Standard behavior for most Preferences is to persist the default value. Make TwoStatePreference (CheckBoxPreference and SwitchPreference) follow this pattern. Bug 5722690 Change-Id: I8b3cf55efc5dfd573b511913b48ced017f0432d8
Diffstat (limited to 'services/java/com/android/server/location/GeocoderProxy.java')
0 files changed, 0 insertions, 0 deletions