Merge pull request #2004 from philipwhiuk/styleQuotedContent

Style quoted content

Fixes #1930
This commit is contained in:
cketti 2017-01-08 03:17:14 +01:00 committed by GitHub
commit 1af2f23f50

View file

@ -17,6 +17,7 @@ import android.widget.Toast;
import com.fsck.k9.K9; import com.fsck.k9.K9;
import com.fsck.k9.K9.Theme; import com.fsck.k9.K9.Theme;
import com.fsck.k9.R; import com.fsck.k9.R;
import com.fsck.k9.helper.HtmlConverter;
import com.fsck.k9.mailstore.AttachmentResolver; import com.fsck.k9.mailstore.AttachmentResolver;
@ -117,7 +118,7 @@ public class MessageWebView extends RigidWebView {
public void displayHtmlContentWithInlineAttachments(@NonNull String htmlText, public void displayHtmlContentWithInlineAttachments(@NonNull String htmlText,
@Nullable AttachmentResolver attachmentResolver, @Nullable OnPageFinishedListener onPageFinishedListener) { @Nullable AttachmentResolver attachmentResolver, @Nullable OnPageFinishedListener onPageFinishedListener) {
setWebViewClient(attachmentResolver, onPageFinishedListener); setWebViewClient(attachmentResolver, onPageFinishedListener);
setHtmlContent(htmlText); setHtmlContent(HtmlConverter.wrapMessageContent(htmlText));
} }
private void setWebViewClient(@Nullable AttachmentResolver attachmentResolver, private void setWebViewClient(@Nullable AttachmentResolver attachmentResolver,