Added cleanup worker

This commit is contained in:
M66B
2019-03-03 09:48:41 +00:00
parent 14cdd55c77
commit 46fec74282
3 changed files with 55 additions and 66 deletions

View File

@@ -131,7 +131,7 @@ public class ServiceSynchronize extends LifecycleService {
}
});
JobDaily.schedule(this);
WorkerCleanup.queue();
}
@Override
@@ -145,7 +145,7 @@ public class ServiceSynchronize extends LifecycleService {
Widget.update(this, -1);
JobDaily.cancel(this);
WorkerCleanup.cancel();
stopForeground(true);