parent
58b000927a
commit
e58aeec097
|
@ -298,9 +298,6 @@ public class HomeFragment extends AppKitFragment implements OnBackPressedListene
|
|||
try {
|
||||
long newestId = Long.parseLong(notifications.get(0).id);
|
||||
long lastSeenId = Long.parseLong(session.markers.notifications.lastReadId);
|
||||
System.out.println("NEWEST: " + newestId);
|
||||
System.out.println("LAST SEEN: " + lastSeenId);
|
||||
|
||||
setNotificationBadge(newestId > lastSeenId);
|
||||
} catch (Exception ignored) {
|
||||
setNotificationBadge(false);
|
||||
|
|
|
@ -166,6 +166,10 @@ public class HomeTimelineFragment extends StatusListFragment {
|
|||
}
|
||||
})
|
||||
.exec(accountID);
|
||||
|
||||
if (parent.getParentFragment() instanceof HomeFragment homeFragment) {
|
||||
homeFragment.updateNotificationBadge();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue