Fixed resetting notification count

This commit is contained in:
M66B
2019-05-21 14:29:45 +02:00
parent 8324b893a4
commit 1b409ad7ab
2 changed files with 15 additions and 12 deletions

View File

@@ -84,8 +84,6 @@ import javax.mail.event.MessageCountEvent;
import javax.mail.event.StoreEvent;
import javax.mail.event.StoreListener;
import me.leolin.shortcutbadger.ShortcutBadger;
import static android.os.Process.THREAD_PRIORITY_BACKGROUND;
public class ServiceSynchronize extends LifecycleService {
@@ -168,12 +166,7 @@ public class ServiceSynchronize extends LifecycleService {
ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
cm.unregisterNetworkCallback(networkCallback);
Widget.update(this, -1);
try {
ShortcutBadger.applyCount(this, 0);
} catch (Throwable ex) {
Log.e(ex);
}
Core.notifyReset(this);
WorkerCleanup.cancel(this);