mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
Some checks failed
Test Build / prepare (push) Has been cancelled
Test Build / build (app, release) (push) Has been cancelled
Test Build / build (app, releaseA) (push) Has been cancelled
Test Build / prerelease (push) Has been cancelled
Test Build / lanzou (push) Has been cancelled
Test Build / test_Branch (push) Has been cancelled
Test Build / telegram (push) Has been cancelled
update fork / build (push) Has been cancelled
closeStaleIssue / stale (push) Has been cancelled
Some checks failed
Test Build / prepare (push) Has been cancelled
Test Build / build (app, release) (push) Has been cancelled
Test Build / build (app, releaseA) (push) Has been cancelled
Test Build / prerelease (push) Has been cancelled
Test Build / lanzou (push) Has been cancelled
Test Build / test_Branch (push) Has been cancelled
Test Build / telegram (push) Has been cancelled
update fork / build (push) Has been cancelled
closeStaleIssue / stale (push) Has been cancelled
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package io.legado.app.ui.widget.dialog
|
||||
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.view.textclassifier.TextClassifier
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
import io.legado.app.R
|
||||
import io.legado.app.base.BaseDialogFragment
|
||||
@@ -70,6 +72,9 @@ class TextDialog() : BaseDialogFragment(R.layout.dialog_text_view) {
|
||||
val content = IntentData.get(it.getString("content")) ?: ""
|
||||
when (it.getString("mode")) {
|
||||
Mode.MD.name -> viewLifecycleOwner.lifecycleScope.launch {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
binding.textView.setTextClassifier(TextClassifier.NO_OP)
|
||||
}
|
||||
val markwon: Markwon
|
||||
val markdown = withContext(IO) {
|
||||
markwon = Markwon.builder(requireContext())
|
||||
|
||||
Reference in New Issue
Block a user