mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-01-07 00:20:08 +02:00
Add counter for new messages
This commit is contained in:
parent
e2be4871e0
commit
e55c154139
1 changed files with 3 additions and 2 deletions
|
@ -82,8 +82,10 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter.
|
||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
if (timelineStatuses != null && timelineStatuses.size() > 0) {
|
||||||
route(DIRECTION.FETCH_NEW, true);
|
route(DIRECTION.FETCH_NEW, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Handle actions that can be done in other fragments
|
//Handle actions that can be done in other fragments
|
||||||
private final BroadcastReceiver receive_action = new BroadcastReceiver() {
|
private final BroadcastReceiver receive_action = new BroadcastReceiver() {
|
||||||
|
@ -535,7 +537,6 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter.
|
||||||
timelineParams.maxId = max_id;
|
timelineParams.maxId = max_id;
|
||||||
}
|
}
|
||||||
timelineParams.fetchingMissing = fetchingMissing;
|
timelineParams.fetchingMissing = fetchingMissing;
|
||||||
|
|
||||||
switch (timelineType) {
|
switch (timelineType) {
|
||||||
case LOCAL:
|
case LOCAL:
|
||||||
timelineParams.local = true;
|
timelineParams.local = true;
|
||||||
|
|
Loading…
Reference in a new issue