mirror of https://github.com/M66B/FairEmail.git
Update notification channel on account save
This commit is contained in:
parent
98fe4c31f6
commit
523cbca2b7
|
@ -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<>();
|
||||||
|
|
Loading…
Reference in New Issue