From 29d1e38340f897b603ec00d3a4e4dc63a5033465 Mon Sep 17 00:00:00 2001 From: Amine Date: Sun, 30 Sep 2018 09:37:22 +0200 Subject: [PATCH] Fixes #223. Fixes internal reader issue on 4.2.2 --- .../fragments/ArticleFragment.kt | 63 ++++++++++--------- 1 file changed, 35 insertions(+), 28 deletions(-) diff --git a/app/src/main/java/apps/amine/bou/readerforselfoss/fragments/ArticleFragment.kt b/app/src/main/java/apps/amine/bou/readerforselfoss/fragments/ArticleFragment.kt index cf45abe..a59783c 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/fragments/ArticleFragment.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/fragments/ArticleFragment.kt @@ -401,34 +401,41 @@ class ArticleFragment : Fragment() { rootView.webcontent.loadDataWithBaseURL( baseUrl, - """$c""".trimMargin(), - "text/html; charset=utf-8", + """ + | + | + | + | + | $c + |""".trimMargin(), + "text/html", "utf-8", null )