summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Charles Lombardo2023-09-26 18:54:34 -0400
committerGravatar Charles Lombardo2023-09-27 13:40:09 -0400
commitec388622ffd1d0083cb946998ceb79f25dc1b4b8 (patch)
tree1b4764c1be76bb490e88622519a1dae46e675267 /src
parentandroid: Don't wait for post to update input overlay visibility (diff)
downloadyuzu-ec388622ffd1d0083cb946998ceb79f25dc1b4b8.tar.gz
yuzu-ec388622ffd1d0083cb946998ceb79f25dc1b4b8.tar.xz
yuzu-ec388622ffd1d0083cb946998ceb79f25dc1b4b8.zip
android: Don't update views if binding is null in onConfigurationChanged
Diffstat (limited to '')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
index 39b2a961b..e6ad2aa77 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
@@ -304,6 +304,10 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
304 304
305 override fun onConfigurationChanged(newConfig: Configuration) { 305 override fun onConfigurationChanged(newConfig: Configuration) {
306 super.onConfigurationChanged(newConfig) 306 super.onConfigurationChanged(newConfig)
307 if (_binding == null) {
308 return
309 }
310
307 updateScreenLayout() 311 updateScreenLayout()
308 if (emulationActivity?.isInPictureInPictureMode == true) { 312 if (emulationActivity?.isInPictureInPictureMode == true) {
309 if (binding.drawerLayout.isOpen) { 313 if (binding.drawerLayout.isOpen) {