Fix counters

This commit is contained in:
Thomas 2022-10-08 18:00:22 +02:00
parent 6fe0b25afa
commit a14962d977
1 changed files with 2 additions and 0 deletions

View File

@ -326,6 +326,8 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter.
//For these directions, the app will display counters for new messages
if (insertedStatus >= 0 && update != null && direction != DIRECTION.FETCH_NEW && !fetchingMissing) {
update.onUpdate(insertedStatus, timelineType, slug);
} else if (update != null && insertedStatus == 0 && direction == DIRECTION.REFRESH) {
update.onUpdate(0, timelineType, slug);
}
if (direction == DIRECTION.TOP && fetchingMissing) {
binding.recyclerView.scrollToPosition(getPosition(fetched_statuses.statuses.get(fetched_statuses.statuses.size() - 1)) + 1);