Browse Source

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

pull/15/merge
Charles Lombardo 2 years ago
parent
commit
ec388622ff
  1. 4
      src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt

4
src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt

@ -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) {

Loading…
Cancel
Save