diff options
| author | 2023-09-26 18:50:58 -0400 | |
|---|---|---|
| committer | 2023-09-27 13:40:09 -0400 | |
| commit | 6a425e95cb5feffb4938df7cf155397e8f4ac85e (patch) | |
| tree | cbf4a561af2386a7e0924b4f77c4da81ec3641a4 /src/android | |
| parent | android: Close activity with toast if emulation has no game (diff) | |
| download | yuzu-6a425e95cb5feffb4938df7cf155397e8f4ac85e.tar.gz yuzu-6a425e95cb5feffb4938df7cf155397e8f4ac85e.tar.xz yuzu-6a425e95cb5feffb4938df7cf155397e8f4ac85e.zip | |
android: Don't wait for post to update input overlay visibility
Diffstat (limited to 'src/android')
| -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) { |