From 775dfc5114912f3734b215a1d7af75825042810d Mon Sep 17 00:00:00 2001 From: Anish Mishra Date: Thu, 11 Sep 2025 06:27:19 +0530 Subject: [PATCH] Fix status bar visibility issue after keyboard hides on Android --- platform/android/java/lib/src/org/godotengine/godot/Godot.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/android/java/lib/src/org/godotengine/godot/Godot.kt b/platform/android/java/lib/src/org/godotengine/godot/Godot.kt index 3311e7733de..529c9eae69d 100644 --- a/platform/android/java/lib/src/org/godotengine/godot/Godot.kt +++ b/platform/android/java/lib/src/org/godotengine/godot/Godot.kt @@ -622,8 +622,8 @@ class Godot private constructor(val context: Context) { } override fun onEnd(animation: WindowInsetsAnimationCompat) { - // Fixes issue on Android 7 and 8 where immersive mode gets auto disabled after the keyboard is hidden. - if (useImmersive.get() && Build.VERSION.SDK_INT < Build.VERSION_CODES.P) { + // Fixes an issue on Android 10 and older where immersive mode gets auto disabled after the keyboard is hidden on some devices. + if (useImmersive.get() && Build.VERSION.SDK_INT < Build.VERSION_CODES.R) { runOnHostThread { enableImmersiveMode(true, true) }