1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04: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:
Jesse Vincent 2010-08-08 19:43:01 +00:00
parent ce9a84e8fd
commit 1f725a2d5c

View File

@ -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());