use of com.fsck.k9.mailstore.MessageViewInfo in project k-9 by k9mail.
the class MessageTopView method showMessage.
public void showMessage(Account account, MessageViewInfo messageViewInfo) {
resetAndPrepareMessageView(messageViewInfo);
ShowPictures showPicturesSetting = account.getShowPictures();
boolean loadPictures = shouldAutomaticallyLoadPictures(showPicturesSetting, messageViewInfo.message) || showPicturesButtonClicked;
MessageContainerView view = (MessageContainerView) mInflater.inflate(R.layout.message_container, containerView, false);
containerView.addView(view);
boolean hideUnsignedTextDivider = account.isOpenPgpHideSignOnly();
view.displayMessageViewContainer(messageViewInfo, new OnRenderingFinishedListener() {
@Override
public void onLoadFinished() {
displayViewOnLoadFinished(true);
}
}, loadPictures, hideUnsignedTextDivider, attachmentCallback);
if (view.hasHiddenExternalImages() && !showPicturesButtonClicked) {
showShowPicturesButton();
}
}
Aggregations