Fix issue with fetch more

This commit is contained in:
Thomas 2022-06-21 16:21:32 +02:00
parent c998ef1f56
commit a09c882b75

View file

@ -454,6 +454,9 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter.
this.statuses.add(insertAt, statusFetchMore); this.statuses.add(insertAt, statusFetchMore);
statusAdapter.notifyItemInserted(insertAt); statusAdapter.notifyItemInserted(insertAt);
if (direction == DIRECTION.TOP && lastInsertedPosition + 1 < statuses.size()) {
binding.recyclerView.scrollToPosition(lastInsertedPosition + 1);
}
} }
} }
return numberInserted; return numberInserted;