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:
parent
898f65e081
commit
7ef5f9d37e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user