Avoid empty page
This commit is contained in:
parent
d95db5b1b8
commit
2f9b1e9bcf
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue