mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-01-07 00:20:08 +02:00
fix a crash
This commit is contained in:
parent
3db4084688
commit
9f6ca2270d
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ public class ReorderVM extends AndroidViewModel {
|
||||||
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(getApplication().getApplicationContext());
|
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(getApplication().getApplicationContext());
|
||||||
boolean singleBar = sharedpreferences.getBoolean(getApplication().getApplicationContext().getString(R.string.SET_USE_SINGLE_TOPBAR), false);
|
boolean singleBar = sharedpreferences.getBoolean(getApplication().getApplicationContext().getString(R.string.SET_USE_SINGLE_TOPBAR), false);
|
||||||
List<PinnedTimeline> pinnedTimelinesToRemove = new ArrayList<>();
|
List<PinnedTimeline> pinnedTimelinesToRemove = new ArrayList<>();
|
||||||
if (!singleBar) {
|
if (!singleBar && pinned != null) {
|
||||||
for (PinnedTimeline pinnedTimeline : pinned.pinnedTimelines) {
|
for (PinnedTimeline pinnedTimeline : pinned.pinnedTimelines) {
|
||||||
if (pinnedTimeline.type == Timeline.TimeLineEnum.HOME) {
|
if (pinnedTimeline.type == Timeline.TimeLineEnum.HOME) {
|
||||||
pinnedTimelinesToRemove.add(pinnedTimeline);
|
pinnedTimelinesToRemove.add(pinnedTimeline);
|
||||||
|
|
Loading…
Reference in a new issue