mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
When mail is sent successfully, cancel the "couldn't send mail"
notification
This commit is contained in:
parent
b59eb6c69f
commit
eda76640c0
@ -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 New Issue
Block a user