pull/32/head
kunfei 5 years ago
parent e4da9721ca
commit 1618fff57b
  1. 7
      app/src/main/java/io/legado/app/ui/readbook/config/ReadStyleDialog.kt

@ -32,7 +32,12 @@ class ReadStyleDialog : DialogFragment() {
super.onStart()
val dm = DisplayMetrics()
activity?.windowManager?.defaultDisplay?.getMetrics(dm)
dialog?.window?.setLayout((dm.widthPixels * 0.9).toInt(), ViewGroup.LayoutParams.WRAP_CONTENT)
dialog?.window?.let {
val attr = it.attributes
attr.dimAmount = 0.0f
it.attributes = attr
it.setLayout((dm.widthPixels * 0.9).toInt(), ViewGroup.LayoutParams.WRAP_CONTENT)
}
}
private fun initData() {

Loading…
Cancel
Save