summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hennen <tom.hennen@gmail.com>2015-11-29 13:56:19 -0500
committerTom Hennen <tom.hennen@gmail.com>2015-11-29 13:56:19 -0500
commit72ecf311bd41e8a42d970f40ea85480af1d71421 (patch)
tree704898b804751715f7aa56d9add8f735db884239
parent926f99478b682bc6e4cf300c416e3984d8aae2d9 (diff)
downloadAntennaPod-72ecf311bd41e8a42d970f40ea85480af1d71421.zip
actually apply the preferences
-rw-r--r--app/src/main/java/de/danoeh/antennapod/receiver/PlayerWidget.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/receiver/PlayerWidget.java b/app/src/main/java/de/danoeh/antennapod/receiver/PlayerWidget.java
index a318c3433..6048ffb1a 100644
--- a/app/src/main/java/de/danoeh/antennapod/receiver/PlayerWidget.java
+++ b/app/src/main/java/de/danoeh/antennapod/receiver/PlayerWidget.java
@@ -75,6 +75,6 @@ public class PlayerWidget extends AppWidgetProvider {
private void setEnabled(Context context, boolean enabled) {
SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);
- prefs.edit().putBoolean(KEY_ENABLED, enabled);
+ prefs.edit().putBoolean(KEY_ENABLED, enabled).apply();
}
}