Skip to content

Commit 333f918

Browse files
author
Jan Guegel
committed
ops.. wrong branch..
Signed-off-by: Jan Guegel <[email protected]>
1 parent e24f7f7 commit 333f918

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/src/main/kotlin/org/fossify/filemanager/activities/ReadTextActivity.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import android.net.Uri
77
import android.os.Bundle
88
import android.print.PrintAttributes
99
import android.print.PrintManager
10-
import android.util.Base64
1110
import android.view.inputmethod.EditorInfo
1211
import android.webkit.WebResourceRequest
1312
import android.webkit.WebView
@@ -230,9 +229,7 @@ class ReadTextActivity : SimpleActivity() {
230229
}
231230
}
232231

233-
val text = binding.readTextView.text.toString()
234-
val base64 = Base64.encodeToString(text.toByteArray(), Base64.DEFAULT)
235-
webView.loadData(base64, "text/plain", "base64")
232+
webView.loadData(binding.readTextView.text.toString(), "text/plain", "UTF-8")
236233
} catch (e: Exception) {
237234
showErrorToast(e)
238235
}

0 commit comments

Comments
 (0)