fix a crash

This commit is contained in:
Thomas 2022-09-14 10:29:44 +02:00
parent 3db4084688
commit 9f6ca2270d

View file

@ -80,7 +80,7 @@ public class ReorderVM extends AndroidViewModel {
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(getApplication().getApplicationContext());
boolean singleBar = sharedpreferences.getBoolean(getApplication().getApplicationContext().getString(R.string.SET_USE_SINGLE_TOPBAR), false);
List<PinnedTimeline> pinnedTimelinesToRemove = new ArrayList<>();
if (!singleBar) {
if (!singleBar && pinned != null) {
for (PinnedTimeline pinnedTimeline : pinned.pinnedTimelines) {
if (pinnedTimeline.type == Timeline.TimeLineEnum.HOME) {
pinnedTimelinesToRemove.add(pinnedTimeline);