feat: 优化

pull/277/head
kunfei 5 years ago
parent d72b63b99a
commit 204ebe072f
  1. 10
      app/src/main/java/io/legado/app/ui/book/read/config/TipConfigDialog.kt

@ -25,12 +25,10 @@ class TipConfigDialog : BaseDialogFragment() {
Help.upSystemUiVisibility(it)
it.windowManager?.defaultDisplay?.getMetrics(dm)
}
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)
}
dialog?.window?.setLayout(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT
)
}
override fun onCreateView(

Loading…
Cancel
Save