fix(android): never try to fight with the navigation bar on Android ever, closes #3618 (#3646)

This commit is contained in:
Huang Xin
2026-03-27 00:40:49 +08:00
committed by GitHub
parent 52df478f21
commit af9cf33936
@@ -285,7 +285,7 @@ class NativeBridgePlugin(private val activity: Activity): Plugin(activity) {
}
if (visible) {
controller.show(WindowInsets.Type.statusBars())
controller.show(WindowInsets.Type.navigationBars())
controller.hide(WindowInsets.Type.navigationBars())
} else {
controller.hide(WindowInsets.Type.systemBars())
}
@@ -301,7 +301,7 @@ class NativeBridgePlugin(private val activity: Activity): Plugin(activity) {
}
if (visible) {
it.show(WindowInsetsCompat.Type.statusBars())
it.show(WindowInsetsCompat.Type.navigationBars())
it.hide(WindowInsetsCompat.Type.navigationBars())
} else {
it.hide(WindowInsetsCompat.Type.systemBars())
}