Browse Source

Explicitly auto cancel new messages notification

main
M66B 6 years ago
parent
commit
fb5967623f
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 1
- 0
app/src/main/java/eu/faircode/email/ServiceSynchronize.java 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)


Loading…
Cancel
Save