Search in sources :

Example 1 with AttachErrorState

use of com.fsck.k9.activity.compose.ComposeCryptoStatus.AttachErrorState in project k-9 by k9mail.

the class AttachmentPresenter method onClickAddAttachment.

public void onClickAddAttachment(RecipientPresenter recipientPresenter) {
    ComposeCryptoStatus currentCachedCryptoStatus = recipientPresenter.getCurrentCachedCryptoStatus();
    if (currentCachedCryptoStatus == null) {
        return;
    }
    AttachErrorState maybeAttachErrorState = currentCachedCryptoStatus.getAttachErrorStateOrNull();
    if (maybeAttachErrorState != null) {
        recipientPresenter.showPgpAttachError(maybeAttachErrorState);
        return;
    }
    attachmentMvpView.showPickAttachmentDialog(REQUEST_CODE_ATTACHMENT_URI);
}
Also used : AttachErrorState(com.fsck.k9.activity.compose.ComposeCryptoStatus.AttachErrorState)

Aggregations

AttachErrorState (com.fsck.k9.activity.compose.ComposeCryptoStatus.AttachErrorState)1