small fixes

pull/254/head
Thomas 2 years ago
parent b0057786e1
commit 1ac365befa

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

Loading…
Cancel
Save