force-recreating views if DISPLAY_MODE changes

Hopefully fully fixes https://github.com/vanilla-music/vanilla/issues/331
This commit is contained in:
Adrian Ulrich 2016-05-10 19:26:25 +02:00
parent 255b8f20a7
commit f5f92f8368

View File

@ -884,7 +884,7 @@ public final class PlaybackService extends Service
mReadaheadEnabled = settings.getBoolean(PrefKeys.ENABLE_READAHEAD, PrefDefaults.ENABLE_READAHEAD);
} else if (PrefKeys.AUTOPLAYLIST_PLAYCOUNTS.equals(key)) {
mAutoPlPlaycounts = settings.getInt(PrefKeys.AUTOPLAYLIST_PLAYCOUNTS, PrefDefaults.AUTOPLAYLIST_PLAYCOUNTS);
} else if (PrefKeys.USE_DARK_THEME.equals(key)) {
} else if (PrefKeys.USE_DARK_THEME.equals(key) || PrefKeys.DISPLAY_MODE.equals(key)) {
// Theme changed: trigger a restart of all registered activites
ArrayList<TimelineCallback> list = sCallbacks;
for (int i = list.size(); --i != -1; )