android: Don't update views if binding is null in onConfigurationChanged

This commit is contained in:
Charles Lombardo 2023-09-26 18:54:34 -04:00
parent 6a425e95cb
commit ec388622ff

View File

@ -304,6 +304,10 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
override fun onConfigurationChanged(newConfig: Configuration) {
super.onConfigurationChanged(newConfig)
if (_binding == null) {
return
}
updateScreenLayout()
if (emulationActivity?.isInPictureInPictureMode == true) {
if (binding.drawerLayout.isOpen) {