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

When mail is sent successfully, cancel the "couldn't send mail"

notification
This commit is contained in:
Jesse Vincent 2010-12-19 01:30:11 +00:00
parent b59eb6c69f
commit eda76640c0

View File

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