diff options
author | Tom Hennen <tom.hennen@gmail.com> | 2015-11-29 13:56:19 -0500 |
---|---|---|
committer | Tom Hennen <tom.hennen@gmail.com> | 2015-11-29 13:56:19 -0500 |
commit | 72ecf311bd41e8a42d970f40ea85480af1d71421 (patch) | |
tree | 704898b804751715f7aa56d9add8f735db884239 | |
parent | 926f99478b682bc6e4cf300c416e3984d8aae2d9 (diff) | |
download | AntennaPod-72ecf311bd41e8a42d970f40ea85480af1d71421.zip |
actually apply the preferences
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/receiver/PlayerWidget.java | 2 |
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(); } } |