mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
increment the new message count if the message is in a notifiable folder
and the account wants notifications. (even if we don't notify for a message from ourselves, we DO increase the notification count.)
This commit is contained in:
parent
ce9a84e8fd
commit
1f725a2d5c
@ -1751,7 +1751,7 @@ public class MessagingController implements Runnable
|
||||
|
||||
if (shouldNotifyForMessage(account, message))
|
||||
{
|
||||
|
||||
newMessages.incrementAndGet();
|
||||
notifyAccount(mApplication, account, message, unreadBeforeStart, newMessages);
|
||||
}
|
||||
|
||||
@ -1897,6 +1897,7 @@ public class MessagingController implements Runnable
|
||||
// Send a notification of this message
|
||||
if (shouldNotifyForMessage(account, message))
|
||||
{
|
||||
newMessages.incrementAndGet();
|
||||
notifyAccount(mApplication, account, message, unreadBeforeStart, newMessages);
|
||||
}
|
||||
|
||||
@ -4622,9 +4623,6 @@ public class MessagingController implements Runnable
|
||||
messageNotice.append(context.getString(R.string.notification_new_title));
|
||||
}
|
||||
|
||||
newMessageCount.incrementAndGet();
|
||||
|
||||
|
||||
NotificationManager notifMgr =
|
||||
(NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
Notification notif = new Notification(R.drawable.stat_notify_email_generic, messageNotice, System.currentTimeMillis());
|
||||
|
Loading…
Reference in New Issue
Block a user