fix an issue

This commit is contained in:
Thomas 2022-06-23 18:29:12 +02:00
parent be1ea400de
commit a12679cbbf

View file

@ -568,7 +568,7 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter.
*/
private void route(DIRECTION direction, boolean fetchingMissing) {
new Thread(() -> {
if (binding == null) {
if (binding == null || !isAdded()) {
return;
}
QuickLoad quickLoad = new QuickLoad(requireActivity()).getSavedValue(MainActivity.currentUserID, MainActivity.currentInstance, timelineType, ident);