pull/34/head
kunfei 5 years ago
parent 2a9d537b6e
commit 9e488031ea
  1. 4
      app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudConfigDialog.kt

@ -39,10 +39,6 @@ class ReadAloudConfigDialog : DialogFragment() {
} }
dialog?.window?.let { dialog?.window?.let {
it.setBackgroundDrawableResource(R.color.transparent) it.setBackgroundDrawableResource(R.color.transparent)
it.decorView.setPadding(0, 0, 0, 0)
val attr = it.attributes
attr.dimAmount = 0.0f
it.attributes = attr
it.setLayout((dm.widthPixels * 0.9).toInt(), ViewGroup.LayoutParams.WRAP_CONTENT) it.setLayout((dm.widthPixels * 0.9).toInt(), ViewGroup.LayoutParams.WRAP_CONTENT)
} }
} }

Loading…
Cancel
Save