Search in sources :

Example 1 with MessageCryptoHelper

use of com.fsck.k9.ui.crypto.MessageCryptoHelper in project k-9 by k9mail.

the class MessageLoaderHelper method startOrResumeCryptoOperation.

// process with crypto helper
private void startOrResumeCryptoOperation() {
    RetainFragment<MessageCryptoHelper> retainCryptoHelperFragment = getMessageCryptoHelperRetainFragment(true);
    if (retainCryptoHelperFragment.hasData()) {
        messageCryptoHelper = retainCryptoHelperFragment.getData();
    }
    if (messageCryptoHelper == null || messageCryptoHelper.isConfiguredForOutdatedCryptoProvider()) {
        messageCryptoHelper = new MessageCryptoHelper(context);
        retainCryptoHelperFragment.setData(messageCryptoHelper);
    }
    messageCryptoHelper.asyncStartOrResumeProcessingMessage(localMessage, messageCryptoCallback, cachedDecryptionResult);
}
Also used : MessageCryptoHelper(com.fsck.k9.ui.crypto.MessageCryptoHelper)

Aggregations

MessageCryptoHelper (com.fsck.k9.ui.crypto.MessageCryptoHelper)1