Prevent crash

This commit is contained in:
M66B
2019-04-05 14:38:54 +02:00
parent 1657d1a836
commit f619dd09a3
2 changed files with 10 additions and 2 deletions

View File

@@ -163,7 +163,11 @@ public class ServiceSynchronize extends LifecycleService {
cm.unregisterNetworkCallback(networkCallback);
Widget.update(this, -1);
ShortcutBadger.applyCount(this, 0);
try {
ShortcutBadger.applyCount(this, 0);
} catch (Throwable ex) {
Log.e(ex);
}
WorkerCleanup.cancel();