mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-23 01:00:04 +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());
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue