summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/spa
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2019-09-14 20:52:27 +0200
committerByteHamster <info@bytehamster.com>2019-09-14 20:52:27 +0200
commit9a716ba4ac070c502dd85967056a0474e0315fee (patch)
tree4c591dcc52b3948e86ee6fd42788d26fe7229235 /app/src/main/java/de/danoeh/antennapod/spa
parent4990733477c4f1a9173b8dc8a8d20a1167b821a8 (diff)
downloadAntennaPod-9a716ba4ac070c502dd85967056a0474e0315fee.zip
Calling apply() on preferences edit
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/spa')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/spa/SPAUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/spa/SPAUtil.java b/app/src/main/java/de/danoeh/antennapod/spa/SPAUtil.java
index 03958508d..5fa6588d9 100644
--- a/app/src/main/java/de/danoeh/antennapod/spa/SPAUtil.java
+++ b/app/src/main/java/de/danoeh/antennapod/spa/SPAUtil.java
@@ -46,7 +46,7 @@ public class SPAUtil {
SharedPreferences.Editor editor = prefs.edit();
editor.putBoolean(PREF_HAS_QUERIED_SP_APPS, true);
- editor.commit();
+ editor.apply();
return true;
} else {
@@ -63,7 +63,7 @@ public class SPAUtil {
SharedPreferences.Editor editor = PreferenceManager
.getDefaultSharedPreferences(c.getApplicationContext()).edit();
editor.putBoolean(PREF_HAS_QUERIED_SP_APPS, false);
- editor.commit();
+ editor.apply();
}
}
}