Update notification channel on account save

This commit is contained in:
M66B 2019-05-16 08:50:38 +02:00
parent 98fe4c31f6
commit 523cbca2b7
1 changed files with 4 additions and 2 deletions

View File

@ -962,9 +962,11 @@ public class FragmentAccount extends FragmentBase {
EntityLog.log(context, (update ? "Updated" : "Added") + " account=" + account.name); EntityLog.log(context, (update ? "Updated" : "Added") + " account=" + account.name);
// Make sure the channel exists on commit // Make sure the channel exists on commit
if (account.notify) if (account.notify) {
// Add or update notification channel
account.deleteNotificationChannel(context);
account.createNotificationChannel(context); account.createNotificationChannel(context);
else if (!account.synchronize) } else if (!account.synchronize)
account.deleteNotificationChannel(context); account.deleteNotificationChannel(context);
List<EntityFolder> folders = new ArrayList<>(); List<EntityFolder> folders = new ArrayList<>();