OSDN Git Service

Use new apply() instead of commit().
[android-x86/packages-apps-Browser.git] / src / com / android / browser / SystemAllowGeolocationOrigins.java
index 3f5a84e..b53611f 100644 (file)
@@ -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);