1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-04 10:39:25 +00:00

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);