When mail is sent successfully, cancel the "couldn't send mail"
notification
This commit is contained in:
parent
b59eb6c69f
commit
eda76640c0
1 changed files with 3 additions and 7 deletions
|
@ -3613,13 +3613,6 @@ public class MessagingController implements Runnable
|
|||
lastFailure = e;
|
||||
}
|
||||
}
|
||||
if (localFolder.getMessageCount() == 0)
|
||||
{
|
||||
// No longer delete the empty local outbox every time we finish sending mail
|
||||
// There's no real win to it and it makes the folder selection UI extra stupid
|
||||
// (We'd need a textentry widget to set the Outbox folder rather than a folder select widget)
|
||||
// localFolder.delete(false);
|
||||
}
|
||||
for (MessagingListener l : getListeners())
|
||||
{
|
||||
l.sendPendingMessagesCompleted(account);
|
||||
|
@ -3645,6 +3638,9 @@ public class MessagingController implements Runnable
|
|||
}
|
||||
finally
|
||||
{
|
||||
if (lastFailure == null) {
|
||||
cancelNotification(K9.SEND_FAILED_NOTIFICATION - account.getAccountNumber());
|
||||
}
|
||||
closeFolder(localFolder);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue