1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -05:00

Fix cache cleanup

This commit is contained in:
cketti 2013-03-18 17:44:10 +01:00
parent 538b81b6ec
commit a364d6262d

View File

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