summaryrefslogtreecommitdiffstats
path: root/src/android/app
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-09-27 00:54:34 +0200
committerCharles Lombardo <clombardo169@gmail.com>2023-09-27 19:40:09 +0200
commitec388622ffd1d0083cb946998ceb79f25dc1b4b8 (patch)
tree1b4764c1be76bb490e88622519a1dae46e675267 /src/android/app
parentandroid: Don't wait for post to update input overlay visibility (diff)
downloadyuzu-ec388622ffd1d0083cb946998ceb79f25dc1b4b8.tar
yuzu-ec388622ffd1d0083cb946998ceb79f25dc1b4b8.tar.gz
yuzu-ec388622ffd1d0083cb946998ceb79f25dc1b4b8.tar.bz2
yuzu-ec388622ffd1d0083cb946998ceb79f25dc1b4b8.tar.lz
yuzu-ec388622ffd1d0083cb946998ceb79f25dc1b4b8.tar.xz
yuzu-ec388622ffd1d0083cb946998ceb79f25dc1b4b8.tar.zst
yuzu-ec388622ffd1d0083cb946998ceb79f25dc1b4b8.zip
Diffstat (limited to 'src/android/app')
-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 {
override fun onConfigurationChanged(newConfig: Configuration) {
super.onConfigurationChanged(newConfig)
+ if (_binding == null) {
+ return
+ }
+
updateScreenLayout()
if (emulationActivity?.isInPictureInPictureMode == true) {
if (binding.drawerLayout.isOpen) {