Avoid empty page

This commit is contained in:
Thomas 2022-11-20 11:39:49 +01:00
parent d95db5b1b8
commit 2f9b1e9bcf
1 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter.
if (initialStatuses != null) { if (initialStatuses != null) {
initializeStatusesCommonView(initialStatuses); initializeStatusesCommonView(initialStatuses);
} else { } else {
recreate(); router(null);
} }
} }
if (timelineStatuses != null && timelineStatuses.size() > 0) { 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 //Only fragment in main view pager should not have the view initialized
//AND Only the first fragment will initialize its view //AND Only the first fragment will initialize its view
flagLoading = false; flagLoading = false;
router(null);
} }
@Override @Override