Added separate notifications POP3

This commit is contained in:
M66B
2020-02-09 09:40:52 +01:00
parent b154bcff09
commit a645fb1bd3
3 changed files with 50 additions and 2 deletions

View File

@@ -242,7 +242,7 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
popupMenu.getMenu().add(Menu.NONE, R.string.title_enabled, 1, R.string.title_enabled)
.setCheckable(true).setChecked(account.synchronize);
if (account.protocol == EntityAccount.TYPE_IMAP && account.notify &&
if (account.notify &&
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
String channelId = EntityAccount.getNotificationChannelId(account.id);
NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);