diff options
| -rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt | 12 |
1 files changed, 3 insertions, 9 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 aa9cea442..39b2a961b 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 | |||
| @@ -310,19 +310,13 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback { | |||
| 310 | binding.drawerLayout.close() | 310 | binding.drawerLayout.close() |
| 311 | } | 311 | } |
| 312 | if (EmulationMenuSettings.showOverlay) { | 312 | if (EmulationMenuSettings.showOverlay) { |
| 313 | binding.surfaceInputOverlay.post { | 313 | binding.surfaceInputOverlay.visibility = View.INVISIBLE |
| 314 | binding.surfaceInputOverlay.visibility = View.INVISIBLE | ||
| 315 | } | ||
| 316 | } | 314 | } |
| 317 | } else { | 315 | } else { |
| 318 | if (EmulationMenuSettings.showOverlay && emulationViewModel.emulationStarted.value) { | 316 | if (EmulationMenuSettings.showOverlay && emulationViewModel.emulationStarted.value) { |
| 319 | binding.surfaceInputOverlay.post { | 317 | binding.surfaceInputOverlay.visibility = View.VISIBLE |
| 320 | binding.surfaceInputOverlay.visibility = View.VISIBLE | ||
| 321 | } | ||
| 322 | } else { | 318 | } else { |
| 323 | binding.surfaceInputOverlay.post { | 319 | binding.surfaceInputOverlay.visibility = View.INVISIBLE |
| 324 | binding.surfaceInputOverlay.visibility = View.INVISIBLE | ||
| 325 | } | ||
| 326 | } | 320 | } |
| 327 | if (!isInFoldableLayout) { | 321 | if (!isInFoldableLayout) { |
| 328 | if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) { | 322 | if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) { |