mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Fix cache cleanup
This commit is contained in:
parent
538b81b6ec
commit
a364d6262d
@ -2803,10 +2803,10 @@ public class MessagingController implements Runnable {
|
|||||||
try {
|
try {
|
||||||
if (threadedList) {
|
if (threadedList) {
|
||||||
localStore.setFlagForThreads(ids, flag, newState);
|
localStore.setFlagForThreads(ids, flag, newState);
|
||||||
removeFlagFromCache(account, ids, flag);
|
removeFlagForThreadsFromCache(account, ids, flag);
|
||||||
} else {
|
} else {
|
||||||
localStore.setFlag(ids, flag, newState);
|
localStore.setFlag(ids, flag, newState);
|
||||||
removeFlagForThreadsFromCache(account, ids, flag);
|
removeFlagFromCache(account, ids, flag);
|
||||||
}
|
}
|
||||||
} catch (MessagingException e) {
|
} catch (MessagingException e) {
|
||||||
Log.e(K9.LOG_TAG, "Couldn't set flags in local database", e);
|
Log.e(K9.LOG_TAG, "Couldn't set flags in local database", e);
|
||||||
|
Loading…
Reference in New Issue
Block a user