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);
}
Aggregations