Add counter for new messages

This commit is contained in:
Thomas 2022-10-01 17:14:56 +02:00
parent e2be4871e0
commit e55c154139

View file

@ -82,7 +82,9 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter.
@Override
public void onResume() {
super.onResume();
route(DIRECTION.FETCH_NEW, true);
if (timelineStatuses != null && timelineStatuses.size() > 0) {
route(DIRECTION.FETCH_NEW, true);
}
}
//Handle actions that can be done in other fragments
@ -535,7 +537,6 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter.
timelineParams.maxId = max_id;
}
timelineParams.fetchingMissing = fetchingMissing;
switch (timelineType) {
case LOCAL:
timelineParams.local = true;