From 523cbca2b74cb25c43b1ca4f8a8d7979af6febec Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 16 May 2019 08:50:38 +0200 Subject: [PATCH] Update notification channel on account save --- app/src/main/java/eu/faircode/email/FragmentAccount.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentAccount.java b/app/src/main/java/eu/faircode/email/FragmentAccount.java index f17a1cabc8..e92af96601 100644 --- a/app/src/main/java/eu/faircode/email/FragmentAccount.java +++ b/app/src/main/java/eu/faircode/email/FragmentAccount.java @@ -962,9 +962,11 @@ public class FragmentAccount extends FragmentBase { EntityLog.log(context, (update ? "Updated" : "Added") + " account=" + account.name); // Make sure the channel exists on commit - if (account.notify) + if (account.notify) { + // Add or update notification channel + account.deleteNotificationChannel(context); account.createNotificationChannel(context); - else if (!account.synchronize) + } else if (!account.synchronize) account.deleteNotificationChannel(context); List folders = new ArrayList<>();