mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-01-03 14:40:07 +02:00
Fix issue with fetch more
This commit is contained in:
parent
c998ef1f56
commit
a09c882b75
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue