I am using BottomSheetDialogFragment in my activity, the dialog shows full height in portrait mode but doesn\'t when I switch to landscape mode.
This worked for me and was the cleanest approach:
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { val dialog = BottomSheetDialog(requireContext(), theme) dialog.behavior.state = BottomSheetBehavior.STATE_EXPANDED return dialog }