Fix issue with fetch more

This commit is contained in:
Thomas 2022-06-21 16:21:32 +02:00
parent c998ef1f56
commit a09c882b75
1 changed files with 3 additions and 0 deletions

View File

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