Search in sources :

Example 6 with EmailProviderCache

use of com.fsck.k9.cache.EmailProviderCache in project k-9 by k9mail.

the class MessagingController method isMessageSuppressed.

private boolean isMessageSuppressed(LocalMessage message) {
    long messageId = message.getId();
    long folderId = message.getFolder().getId();
    EmailProviderCache cache = EmailProviderCache.getCache(message.getFolder().getAccountUuid(), context);
    return cache.isMessageHidden(messageId, folderId);
}
Also used : EmailProviderCache(com.fsck.k9.cache.EmailProviderCache)

Example 7 with EmailProviderCache

use of com.fsck.k9.cache.EmailProviderCache in project k-9 by k9mail.

the class MessagingController method suppressMessages.

private void suppressMessages(Account account, List<LocalMessage> messages) {
    EmailProviderCache cache = EmailProviderCache.getCache(account.getUuid(), context);
    cache.hideMessages(messages);
}
Also used : EmailProviderCache(com.fsck.k9.cache.EmailProviderCache)

Aggregations

EmailProviderCache (com.fsck.k9.cache.EmailProviderCache)7