mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-06 12:54:11 +01:00
Added widget
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user