actually apply the preferences

This commit is contained in:
Tom Hennen 2015-11-29 13:56:19 -05:00
parent 926f99478b
commit 72ecf311bd

View File

@ -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();
} }
} }