Bug 1061430 - Change SharedPreferences.Editor commit() to apply() where appropriate (GeckoProfile.java) r=rnewman

This commit is contained in:
Mark Finkle 2014-09-03 02:00:42 -04:00
parent 897a51e389
commit b548d7f05c

View File

@ -186,7 +186,7 @@ public final class GeckoProfile {
if (success) {
// Clear all shared prefs for the given profile.
GeckoSharedPrefs.forProfileName(context, profileName)
.edit().clear().commit();
.edit().clear().apply();
}
return success;
@ -270,7 +270,7 @@ public final class GeckoProfile {
if (success) {
// Clear all shared prefs for the guest profile.
GeckoSharedPrefs.forProfileName(context, GUEST_PROFILE)
.edit().clear().commit();
.edit().clear().apply();
}
}