summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-09-27 00:50:58 +0200
committerCharles Lombardo <clombardo169@gmail.com>2023-09-27 19:40:09 +0200
commit6a425e95cb5feffb4938df7cf155397e8f4ac85e (patch)
treecbf4a561af2386a7e0924b4f77c4da81ec3641a4 /src
parentandroid: Close activity with toast if emulation has no game (diff)
downloadyuzu-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
Diffstat (limited to 'src')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt12
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) {