From a12679cbbf976199aba67ae6b8968406201f4a5e Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 23 Jun 2022 18:29:12 +0200 Subject: [PATCH] fix an issue --- .../android/ui/fragment/timeline/FragmentMastodonTimeline.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e1489a25..8e6b8b1a 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 @@ -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);