diff options
author | Ben Murdoch <benm@google.com> | 2011-07-08 10:45:28 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-08 10:45:28 -0700 |
commit | 7e77c42fa87d92cd84b4c0102c95c2d88911e595 (patch) | |
tree | 5fae51dfe98a690b02394e41d5bece7eb2caa0c8 /src | |
parent | 2e1fbfbfe8681ff8ca1dbdac2080f2b55602a312 (diff) | |
parent | 273330a8027dafbd742ba2ebcdaf875e273afb06 (diff) | |
download | packages_apps_Browser-7e77c42fa87d92cd84b4c0102c95c2d88911e595.zip packages_apps_Browser-7e77c42fa87d92cd84b4c0102c95c2d88911e595.tar.gz packages_apps_Browser-7e77c42fa87d92cd84b4c0102c95c2d88911e595.tar.bz2 |
Merge "Force a settings sync when updating the auto-fill profile."
Diffstat (limited to 'src')
-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() { |