Fix issue with fetch more

pull/254/head
Thomas 2 years ago
parent c998ef1f56
commit a09c882b75

@ -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…
Cancel
Save