From fb5967623f6964a468ef2a3c4e2d88699a249d8f Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 13 Sep 2018 11:47:55 +0000 Subject: [PATCH] Explicitly auto cancel new messages notification --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index a473b55a..8f100455 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -294,6 +294,7 @@ public class ServiceSynchronize extends LifecycleService { .setSmallIcon(R.drawable.baseline_mail_24) .setContentTitle(getResources().getQuantityString(R.plurals.title_notification_unseen, messages.size(), messages.size())) .setContentIntent(pi) + .setAutoCancel(true) .setSound(uri) .setShowWhen(false) .setPriority(Notification.PRIORITY_DEFAULT)