summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-07-08 18:37:22 +0100
committerBen Murdoch <benm@google.com>2011-07-08 18:41:07 +0100
commit273330a8027dafbd742ba2ebcdaf875e273afb06 (patch)
treeb8b83db3a4dcb614d8cac5b3f638c2097cbc6956 /src/com
parent621980e6e3d50804e98b055ea446a96c11a34347 (diff)
downloadpackages_apps_browser-273330a8027dafbd742ba2ebcdaf875e273afb06.zip
packages_apps_browser-273330a8027dafbd742ba2ebcdaf875e273afb06.tar.gz
packages_apps_browser-273330a8027dafbd742ba2ebcdaf875e273afb06.tar.bz2
Force a settings sync when updating the auto-fill profile.
As auto-fill reuses the same profile ID when the user makes edits, the shared preferences manager thinks nothing has changed. So force a settings sync in this case. Change-Id: I524c98958bc4d26f95f95ca35665c1009b197b74
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/browser/BrowserSettings.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java
index 3a6349a..22fc3c3 100644
--- a/src/com/android/browser/BrowserSettings.java
+++ b/src/com/android/browser/BrowserSettings.java
@@ -423,6 +423,11 @@ public class BrowserSettings implements OnSharedPreferenceChangeListener,
public void setAutoFillProfile(AutoFillProfile profile, Message msg) {
mAutofillHandler.waitForLoad();
mAutofillHandler.setAutoFillProfile(profile, msg);
+ // Auto-fill will reuse the same profile ID when making edits to the profile,
+ // so we need to force a settings sync (otherwise the SharedPreferences
+ // manager will optimise out the call to onSharedPreferenceChanged(), as
+ // it thinks nothing has changed).
+ syncManagedSettings();
}
public void toggleDebugSettings() {