Fix issue with fetch more
This commit is contained in:
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…
Reference in New Issue