1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

Don't fire off a notification about new mail before we finish

initializing an account.
This commit is contained in:
Jesse Vincent 2010-07-27 01:27:45 +00:00
parent b3ac8fa252
commit c541a07ed2

View File

@ -4541,7 +4541,7 @@ public class MessagingController implements Runnable
{
// Do not notify if the user does not have notifications
// enabled or if the message has been read
if (!account.isNotifyNewMail() || message.isSet(Flag.SEEN))
if (!account.isNotifyNewMail() || message.isSet(Flag.SEEN) || ( account.getName() == null) )
{
return false;
}