1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 01:36:55 +00:00

Explicitly auto cancel new messages notification

This commit is contained in:
M66B 2018-09-13 11:47:55 +00:00
parent e71a406df8
commit fb5967623f

View file

@ -294,6 +294,7 @@ public class ServiceSynchronize extends LifecycleService {
.setSmallIcon(R.drawable.baseline_mail_24) .setSmallIcon(R.drawable.baseline_mail_24)
.setContentTitle(getResources().getQuantityString(R.plurals.title_notification_unseen, messages.size(), messages.size())) .setContentTitle(getResources().getQuantityString(R.plurals.title_notification_unseen, messages.size(), messages.size()))
.setContentIntent(pi) .setContentIntent(pi)
.setAutoCancel(true)
.setSound(uri) .setSound(uri)
.setShowWhen(false) .setShowWhen(false)
.setPriority(Notification.PRIORITY_DEFAULT) .setPriority(Notification.PRIORITY_DEFAULT)