override fun onStart() { super.onStart() dialog?.let { val width = ViewGroup.LayoutParams.MATCH_PARENT val height = ViewGroup.LayoutParams.MATCH_PARENT it.window?.setLayout(width, height) } }