I have a problem with a fragment dialog, if the phone is on portrait mode, everything is ok, but when I rotate my phone, in the landscape, if i launch the dialogFragment, only the header of the dialog is visible
i tried this below but it doesn't work
override fun onStart() {
super.onStart()
if (dialog != null) {
val width = ViewGroup.LayoutParams.MATCH_PARENT
val height = ViewGroup.LayoutParams.MATCH_PARENT
dialog!!.window!!.setLayout(width, height)
}
}
All of my code
