1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Set flagged and unread count to 0 when emptying the trash folder

This commit is contained in:
cketti 2012-02-04 18:07:57 +01:00
parent 898f65e081
commit 7ef5f9d37e

View File

@ -3529,7 +3529,8 @@ public class MessagingController implements Runnable {
localFolder = (LocalFolder) localStore.getFolder(account.getTrashFolderName());
localFolder.open(OpenMode.READ_WRITE);
localFolder.setFlags(new Flag[] { Flag.DELETED }, true);
localFolder.resetUnreadAndFlaggedCounts();
localFolder.setUnreadMessageCount(0);
localFolder.setFlaggedMessageCount(0);
for (MessagingListener l : getListeners()) {
l.emptyTrashCompleted(account);