mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Fix status bar visibility issue after keyboard hides on Android
This commit is contained in:
parent
2dd26a027a
commit
775dfc5114
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue