Merge pull request #110398 from syntaxerror247/status-bar-regression-fix

Fix status bar visibility issue after keyboard hides on Android
This commit is contained in:
Thaddeus Crews 2025-09-11 11:38:18 -05:00
commit 9b50ea8ade
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -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)
}