File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
app/src/main/kotlin/org/fossify/filemanager/activities Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import android.net.Uri
77import android.os.Bundle
88import android.print.PrintAttributes
99import android.print.PrintManager
10- import android.util.Base64
1110import android.view.inputmethod.EditorInfo
1211import android.webkit.WebResourceRequest
1312import 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 }
You can’t perform that action at this time.
0 commit comments