small fixes

This commit is contained in:
Thomas 2022-06-24 18:05:51 +02:00
parent b0057786e1
commit 1ac365befa

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 || !isAdded()) {
if (binding == null || getActivity() == null || !isAdded()) {
return;
}
QuickLoad quickLoad = new QuickLoad(requireActivity()).getSavedValue(MainActivity.currentUserID, MainActivity.currentInstance, timelineType, ident);