diff options
author | Ben Murdoch <benm@google.com> | 2011-07-08 18:37:22 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-07-08 18:41:07 +0100 |
commit | 273330a8027dafbd742ba2ebcdaf875e273afb06 (patch) | |
tree | b8b83db3a4dcb614d8cac5b3f638c2097cbc6956 /src/com/android/browser/BrowserSettings.java | |
parent | 621980e6e3d50804e98b055ea446a96c11a34347 (diff) | |
download | packages_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/android/browser/BrowserSettings.java')
-rw-r--r-- | src/com/android/browser/BrowserSettings.java | 5 |
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() { |