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:
parent
df150d3623
commit
1b4f0fc5f1
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue