summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/SystemAllowGeolocationOrigins.java
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2010-09-01 16:29:03 -0700
committerBrad Fitzpatrick <bradfitz@android.com>2010-09-01 16:30:42 -0700
commit1a6e0e8cdd0898bd63f9f27df1b86cbe6722f3bb (patch)
treef720a20ae2014445bfa915276d673363f8ec2e47 /src/com/android/browser/SystemAllowGeolocationOrigins.java
parent11979e058c4ea28dd77a5e598071277a8a824475 (diff)
downloadpackages_apps_Browser-1a6e0e8cdd0898bd63f9f27df1b86cbe6722f3bb.zip
packages_apps_Browser-1a6e0e8cdd0898bd63f9f27df1b86cbe6722f3bb.tar.gz
packages_apps_Browser-1a6e0e8cdd0898bd63f9f27df1b86cbe6722f3bb.tar.bz2
Use new apply() instead of commit().
apply() starts an async disk write and doesn't have a return value but is otherwise identical in observable effects. Change-Id: Id1199cd43d62882cfe7343d46e283b32404dea5d
Diffstat (limited to 'src/com/android/browser/SystemAllowGeolocationOrigins.java')
-rw-r--r--src/com/android/browser/SystemAllowGeolocationOrigins.java2
1 files changed, 1 insertions, 1 deletions
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);