Fix counter reset for notifications

This commit is contained in:
stom79 2019-01-05 09:38:57 +01:00
parent 5c9326be3c
commit 577e5b3067
1 changed files with 3 additions and 0 deletions

View File

@ -133,6 +133,9 @@ public class DisplayNotificationsFragment extends Fragment implements OnRetrieve
flag_loading = true;
swiped = true;
MainActivity.countNewNotifications = 0;
try {
((MainActivity) context).updateNotifCounter();
}catch (Exception ignored){}
String sinceId = null;
if( notifications != null && notifications.size() > 0 )
sinceId = notifications.get(0).getId();