|
|
@ -1380,6 +1380,7 @@ class Core {
|
|
|
|
IMAPFolder ifolder, IMAPMessage imessage,
|
|
|
|
IMAPFolder ifolder, IMAPMessage imessage,
|
|
|
|
boolean browsed, boolean download,
|
|
|
|
boolean browsed, boolean download,
|
|
|
|
List<EntityRule> rules, State state) throws MessagingException, IOException {
|
|
|
|
List<EntityRule> rules, State state) throws MessagingException, IOException {
|
|
|
|
|
|
|
|
// Instead of locking the database while performing message I/O
|
|
|
|
lockFolders.putIfAbsent(folder.id, folder.id);
|
|
|
|
lockFolders.putIfAbsent(folder.id, folder.id);
|
|
|
|
synchronized (lockFolders.get(folder.id)) {
|
|
|
|
synchronized (lockFolders.get(folder.id)) {
|
|
|
|
long uid = ifolder.getUID(imessage);
|
|
|
|
long uid = ifolder.getUID(imessage);
|
|
|
@ -2206,6 +2207,8 @@ class Core {
|
|
|
|
.setVisibility(NotificationCompat.VISIBILITY_PRIVATE)
|
|
|
|
.setVisibility(NotificationCompat.VISIBILITY_PRIVATE)
|
|
|
|
.setOnlyAlertOnce(true);
|
|
|
|
.setOnlyAlertOnce(true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: setAllowSystemGeneratedContextualActions
|
|
|
|
|
|
|
|
|
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
|
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
|
|
|
|
mbuilder
|
|
|
|
mbuilder
|
|
|
|
.setGroup(Long.toString(group))
|
|
|
|
.setGroup(Long.toString(group))
|
|
|
|