移除奇怪的代码

This commit is contained in:
yutou 2022-05-23 19:48:49 +08:00
parent 841ab45269
commit 1204a2cfbb

View File

@ -35,7 +35,7 @@ class MyDialog(context: Activity) : Dialog(context) {
window!!.attributes = attributes
//设置高宽及padding
window!!.decorView.minimumHeight=display.mode.physicalHeight
window!!.decorView.minimumWidth=display.mode.physicalWidth+1440
window!!.decorView.minimumWidth=display.mode.physicalWidth
//如果未设置背景颜色或设置在padding之后,则无法全屏,这里设置的透明底
window!!.decorView.setBackgroundColor(Color.parseColor("#10000000"))
window!!.decorView.setPadding(0,0,0,0)