diff options
author | Ben Murdoch <benm@google.com> | 2010-11-16 11:58:21 +0000 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-11-23 12:14:30 +0000 |
commit | 8029a777106fa6fb911ee1d58402b0de768a583a (patch) | |
tree | 9bad7ba26817f4fa97271ad544f8f7fa09fc0e90 /src/com/android/browser/BrowserSettings.java | |
parent | 1514bb7ed5656316a8dac966cee21653f3c59aff (diff) | |
download | packages_apps_browser-8029a777106fa6fb911ee1d58402b0de768a583a.zip packages_apps_browser-8029a777106fa6fb911ee1d58402b0de768a583a.tar.gz packages_apps_browser-8029a777106fa6fb911ee1d58402b0de768a583a.tar.bz2 |
Invite the user to set up AutoFill
If the user has not set up an AutoFill profile but has the
feature enabled and they start to fill out a form that we
have determined as "autofillable" then offer to take them
to the profile editor to set up their profile.
Change-Id: Ia44c7036ef616d4ea826e541471dd916262488f2
Diffstat (limited to 'src/com/android/browser/BrowserSettings.java')
-rw-r--r-- | src/com/android/browser/BrowserSettings.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java index 069f886..ab2ddb2 100644 --- a/src/com/android/browser/BrowserSettings.java +++ b/src/com/android/browser/BrowserSettings.java @@ -567,6 +567,13 @@ public class BrowserSettings extends Observable { ed.apply(); } + /* package */ void disableAutoFill(Context ctx) { + autoFillEnabled = false; + Editor ed = PreferenceManager.getDefaultSharedPreferences(ctx).edit(); + ed.putBoolean(PREF_AUTOFILL_ENABLED, false); + ed.apply(); + } + /** * Add a WebSettings object to the list of observers that will be updated * when update() is called. |