mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-22 06:43:45 +01:00
actually apply the preferences
This commit is contained in:
parent
926f99478b
commit
72ecf311bd
@ -75,6 +75,6 @@ public class PlayerWidget extends AppWidgetProvider {
|
|||||||
|
|
||||||
private void setEnabled(Context context, boolean enabled) {
|
private void setEnabled(Context context, boolean enabled) {
|
||||||
SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);
|
SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);
|
||||||
prefs.edit().putBoolean(KEY_ENABLED, enabled);
|
prefs.edit().putBoolean(KEY_ENABLED, enabled).apply();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user