override fun onConfigurationChanged()

in app/src/main/java/com/amazon/ivs/broadcast/ui/fragments/main/MainFragment.kt [307:321]


    override fun onConfigurationChanged(newConfig: Configuration) {
        super.onConfigurationChanged(newConfig)
        val isLandscape = newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE
        updateControlPanelVisibility(isLandscape)
        binding.isViewLandscape = isLandscape
        binding.constraintLayout.onDrawn {
            if (viewModel.isScreenCaptureEnabled()) {
                changeMiniPlayerConstraints(isLandscape)
            }
            viewModel.onConfigurationChanged(isLandscape)
        }
        if (isLandscape) {
            binding.debugInfo.setVisible(false)
        }
    }