From dc95cd09eea9749250fe31a3072684d341d19417 Mon Sep 17 00:00:00 2001 From: xbzk Date: Sat, 15 Aug 2026 14:21:52 +0200 Subject: [PATCH] [android] Add Samsung DeX fullscreen probes (#4245) - [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- Shotgun attempt to fix fullscreen issue on samsung dex. External test mapping: bit 1, value 2: disable runtime fullscreen attempts bit 2, value 4: force runtime user-landscape bit 3, value 8: add legacy sticky system UI flags bit 4, value 16: add delayed retries bit 5, value 32: runtime orientation unspecified bit 6, value 64: add FLAG_LAYOUT_NO_LIMITS Good smoke masks: 0, 8, 16, 24, 4, 12, 20, 28, 32, 40, 64, 72, 88, 2. EDIT: 8 (bit 3) did the trick. All cleaned up. Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4245 Reviewed-by: Samuel Reviewed-by: MaranBr --- .../org/yuzu/yuzu_emu/activities/EmulationActivity.kt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt index 716bdfeb7e..aaabcc95be 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt @@ -559,6 +559,15 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener, InputManager private fun enableFullscreenImmersive() { WindowCompat.setDecorFitsSystemWindows(window, false) + @Suppress("DEPRECATION") + window.decorView.systemUiVisibility = + View.SYSTEM_UI_FLAG_FULLSCREEN or + View.SYSTEM_UI_FLAG_HIDE_NAVIGATION or + View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY or + View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN or + View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION or + View.SYSTEM_UI_FLAG_LAYOUT_STABLE + WindowInsetsControllerCompat(window, window.decorView).let { controller -> controller.hide(WindowInsetsCompat.Type.systemBars()) controller.systemBarsBehavior =