From 2f9b1e9bcf042c3052d946f15703435c5975f14e Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 20 Nov 2022 11:39:49 +0100 Subject: [PATCH] Avoid empty page --- .../ui/fragment/timeline/FragmentMastodonTimeline.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/ui/fragment/timeline/FragmentMastodonTimeline.java b/app/src/main/java/app/fedilab/android/ui/fragment/timeline/FragmentMastodonTimeline.java index ab7e1a424..1dee33a72 100644 --- a/app/src/main/java/app/fedilab/android/ui/fragment/timeline/FragmentMastodonTimeline.java +++ b/app/src/main/java/app/fedilab/android/ui/fragment/timeline/FragmentMastodonTimeline.java @@ -206,7 +206,7 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter. if (initialStatuses != null) { initializeStatusesCommonView(initialStatuses); } else { - recreate(); + router(null); } } if (timelineStatuses != null && timelineStatuses.size() > 0) { @@ -277,7 +277,7 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter. //Only fragment in main view pager should not have the view initialized //AND Only the first fragment will initialize its view flagLoading = false; - router(null); + } @Override