|
@@ -1,8 +1,10 @@
|
|
|
package io.legado.app.ui.widget.dialog
|
|
package io.legado.app.ui.widget.dialog
|
|
|
|
|
|
|
|
|
|
+import android.os.Build
|
|
|
import android.os.Bundle
|
|
import android.os.Bundle
|
|
|
import android.view.View
|
|
import android.view.View
|
|
|
import android.view.ViewGroup
|
|
import android.view.ViewGroup
|
|
|
|
|
+import android.view.textclassifier.TextClassifier
|
|
|
import androidx.lifecycle.lifecycleScope
|
|
import androidx.lifecycle.lifecycleScope
|
|
|
import io.legado.app.R
|
|
import io.legado.app.R
|
|
|
import io.legado.app.base.BaseDialogFragment
|
|
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")) ?: ""
|
|
val content = IntentData.get(it.getString("content")) ?: ""
|
|
|
when (it.getString("mode")) {
|
|
when (it.getString("mode")) {
|
|
|
Mode.MD.name -> viewLifecycleOwner.lifecycleScope.launch {
|
|
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 markwon: Markwon
|
|
|
val markdown = withContext(IO) {
|
|
val markdown = withContext(IO) {
|
|
|
markwon = Markwon.builder(requireContext())
|
|
markwon = Markwon.builder(requireContext())
|