pull/1463/head
gedoor 3 years ago
parent 5df6c303ad
commit 23c57d61ae
  1. 3
      app/src/main/java/io/legado/app/ui/widget/dialog/CodeDialog.kt
  2. 3
      app/src/main/java/io/legado/app/ui/widget/dialog/TextDialog.kt

@ -2,6 +2,7 @@ package io.legado.app.ui.widget.dialog
import android.os.Bundle import android.os.Bundle
import android.view.View import android.view.View
import android.view.ViewGroup
import io.legado.app.R import io.legado.app.R
import io.legado.app.base.BaseDialogFragment import io.legado.app.base.BaseDialogFragment
import io.legado.app.databinding.DialogCodeViewBinding import io.legado.app.databinding.DialogCodeViewBinding
@ -28,7 +29,7 @@ class CodeDialog() : BaseDialogFragment(R.layout.dialog_code_view) {
override fun onStart() { override fun onStart() {
super.onStart() super.onStart()
setLayout(0.9f, 0.9f) setLayout(ViewGroup.LayoutParams.MATCH_PARENT, 0.9f)
} }
override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) { override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) {

@ -2,6 +2,7 @@ package io.legado.app.ui.widget.dialog
import android.os.Bundle import android.os.Bundle
import android.view.View import android.view.View
import android.view.ViewGroup
import io.legado.app.R import io.legado.app.R
import io.legado.app.base.BaseDialogFragment import io.legado.app.base.BaseDialogFragment
import io.legado.app.databinding.DialogTextViewBinding import io.legado.app.databinding.DialogTextViewBinding
@ -43,7 +44,7 @@ class TextDialog() : BaseDialogFragment(R.layout.dialog_text_view) {
override fun onStart() { override fun onStart() {
super.onStart() super.onStart()
setLayout(0.9f, 0.9f) setLayout(ViewGroup.LayoutParams.MATCH_PARENT, 0.9f)
} }
override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) { override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) {

Loading…
Cancel
Save