Cancel alerts on successfull connect

This commit is contained in:
M66B
2019-12-10 16:11:49 +01:00
parent df150d3623
commit 1b4f0fc5f1

View File

@@ -1207,6 +1207,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
nm.cancel("receive:" + account.id, 1);
nm.cancel("alert:" + account.id, 1);
// Schedule keep alive alarm
AlarmManager am = (AlarmManager) getSystemService(Context.ALARM_SERVICE);