Added widget

This commit is contained in:
M66B
2018-10-21 18:29:28 +00:00
parent 0532bdb496
commit b3c7bd1429
6 changed files with 109 additions and 0 deletions

View File

@@ -215,6 +215,8 @@ public class ServiceSynchronize extends LifecycleService {
serviceManager.onLost(null);
Widget.update(this, -1);
stopForeground(true);
NotificationManager nm = getSystemService(NotificationManager.class);
@@ -339,6 +341,8 @@ public class ServiceSynchronize extends LifecycleService {
// https://developer.android.com/training/notify-user/group
List<Notification> notifications = new ArrayList<>();
Widget.update(this, messages.size());
if (messages.size() == 0)
return notifications;