mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-17 07:30:16 -05:00
Don't fire off a notification about new mail before we finish
initializing an account.
This commit is contained in:
parent
b3ac8fa252
commit
c541a07ed2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user