mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1061430 - Change SharedPreferences.Editor commit() to apply() where appropriate (GeckoProfile.java) r=rnewman
This commit is contained in:
parent
897a51e389
commit
b548d7f05c
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user