diff options
author | Brad Fitzpatrick <bradfitz@android.com> | 2010-09-02 08:46:54 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-09-02 08:46:54 -0700 |
commit | c8687ffcae1bd5a1a29ee14681485b5fd36a0a82 (patch) | |
tree | 823850523c05bffc56469d1d6ccd82950991d9a0 /src/com/android/browser | |
parent | 97c7476875bcd8dd72ff448754acf44eee5bc64a (diff) | |
parent | 1a6e0e8cdd0898bd63f9f27df1b86cbe6722f3bb (diff) | |
download | packages_apps_browser-c8687ffcae1bd5a1a29ee14681485b5fd36a0a82.zip packages_apps_browser-c8687ffcae1bd5a1a29ee14681485b5fd36a0a82.tar.gz packages_apps_browser-c8687ffcae1bd5a1a29ee14681485b5fd36a0a82.tar.bz2 |
am 1a6e0e8c: Use new apply() instead of commit().
Merge commit '1a6e0e8cdd0898bd63f9f27df1b86cbe6722f3bb' into gingerbread-plus-aosp
* commit '1a6e0e8cdd0898bd63f9f27df1b86cbe6722f3bb':
Use new apply() instead of commit().
Diffstat (limited to 'src/com/android/browser')
4 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/browser/BrowserBookmarksPage.java b/src/com/android/browser/BrowserBookmarksPage.java index 7560c78..dd01009 100644 --- a/src/com/android/browser/BrowserBookmarksPage.java +++ b/src/com/android/browser/BrowserBookmarksPage.java @@ -312,7 +312,7 @@ public class BrowserBookmarksPage extends Activity implements } else { ed.putInt(PREF_BOOKMARK_VIEW_MODE, mViewMode.ordinal()); } - ed.commit(); + ed.apply(); if (mBookmarksAdapter != null) { mBookmarksAdapter.switchViewMode(viewMode); diff --git a/src/com/android/browser/BrowserProvider.java b/src/com/android/browser/BrowserProvider.java index bf1f9d5..03e8de4 100644 --- a/src/com/android/browser/BrowserProvider.java +++ b/src/com/android/browser/BrowserProvider.java @@ -363,7 +363,7 @@ public class BrowserProvider extends ContentProvider { fixPicasaBookmark(); Editor ed = p.edit(); ed.putBoolean("fix_picasa", false); - ed.commit(); + ed.apply(); } } mSearchManager = (SearchManager) context.getSystemService(Context.SEARCH_SERVICE); diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java index 769dfca..fbfe608 100644 --- a/src/com/android/browser/BrowserSettings.java +++ b/src/com/android/browser/BrowserSettings.java @@ -393,7 +393,7 @@ class BrowserSettings extends Observable { Editor ed = PreferenceManager. getDefaultSharedPreferences(context).edit(); ed.putString(PREF_HOMEPAGE, url); - ed.commit(); + ed.apply(); homeUrl = url; } @@ -573,7 +573,7 @@ class BrowserSettings extends Observable { reset(); SharedPreferences p = PreferenceManager.getDefaultSharedPreferences(ctx); - p.edit().clear().commit(); + p.edit().clear().apply(); PreferenceManager.setDefaultValues(ctx, R.xml.browser_preferences, true); // reset homeUrl diff --git a/src/com/android/browser/SystemAllowGeolocationOrigins.java b/src/com/android/browser/SystemAllowGeolocationOrigins.java index 3f5a84e..b53611f 100644 --- a/src/com/android/browser/SystemAllowGeolocationOrigins.java +++ b/src/com/android/browser/SystemAllowGeolocationOrigins.java @@ -103,7 +103,7 @@ class SystemAllowGeolocationOrigins { // Save the new value as the last read value preferences.edit() .putString(LAST_READ_ALLOW_GEOLOCATION_ORIGINS, newSetting) - .commit(); + .apply(); Set<String> oldOrigins = parseAllowGeolocationOrigins(lastReadSetting); Set<String> newOrigins = parseAllowGeolocationOrigins(newSetting); |