pull/1630/head
kunfei 3 years ago
parent 1b1b6d8f73
commit da99a41e52
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/ContentEditDialog.kt
  2. 2
      app/src/main/java/io/legado/app/ui/widget/dialog/CodeDialog.kt

@ -32,7 +32,7 @@ class ContentEditDialog : BaseDialogFragment(R.layout.dialog_content_edit) {
override fun onStart() {
super.onStart()
setLayout(ViewGroup.LayoutParams.MATCH_PARENT, 0.9f)
setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
}
override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) {

@ -29,7 +29,7 @@ class CodeDialog() : BaseDialogFragment(R.layout.dialog_code_view) {
override fun onStart() {
super.onStart()
setLayout(ViewGroup.LayoutParams.MATCH_PARENT, 0.9f)
setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
}
override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) {

Loading…
Cancel
Save