diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2023-09-27 00:50:58 +0200 |
---|---|---|
committer | Charles Lombardo <clombardo169@gmail.com> | 2023-09-27 19:40:09 +0200 |
commit | 6a425e95cb5feffb4938df7cf155397e8f4ac85e (patch) | |
tree | cbf4a561af2386a7e0924b4f77c4da81ec3641a4 | |
parent | android: Close activity with toast if emulation has no game (diff) | |
download | yuzu-6a425e95cb5feffb4938df7cf155397e8f4ac85e.tar yuzu-6a425e95cb5feffb4938df7cf155397e8f4ac85e.tar.gz yuzu-6a425e95cb5feffb4938df7cf155397e8f4ac85e.tar.bz2 yuzu-6a425e95cb5feffb4938df7cf155397e8f4ac85e.tar.lz yuzu-6a425e95cb5feffb4938df7cf155397e8f4ac85e.tar.xz yuzu-6a425e95cb5feffb4938df7cf155397e8f4ac85e.tar.zst yuzu-6a425e95cb5feffb4938df7cf155397e8f4ac85e.zip |
-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 { binding.drawerLayout.close() } if (EmulationMenuSettings.showOverlay) { - binding.surfaceInputOverlay.post { - binding.surfaceInputOverlay.visibility = View.INVISIBLE - } + binding.surfaceInputOverlay.visibility = View.INVISIBLE } } else { if (EmulationMenuSettings.showOverlay && emulationViewModel.emulationStarted.value) { - binding.surfaceInputOverlay.post { - binding.surfaceInputOverlay.visibility = View.VISIBLE - } + binding.surfaceInputOverlay.visibility = View.VISIBLE } else { - binding.surfaceInputOverlay.post { - binding.surfaceInputOverlay.visibility = View.INVISIBLE - } + binding.surfaceInputOverlay.visibility = View.INVISIBLE } if (!isInFoldableLayout) { if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) { |