fix(android): use stable safe area insets to avoid unnecessary layout shift, closes #3670 (#3859)

This commit is contained in:
Huang Xin 2026-04-13 18:04:41 +08:00 committed by GitHub
parent e9d71b2936
commit 011ad18a02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 12 additions and 12 deletions

View file

@ -442,7 +442,6 @@ class NativeBridgePlugin(private val activity: Activity): Plugin(activity) {
if (windowInsets != null) {
val insets = windowInsets.getInsets(
WindowInsetsCompat.Type.systemBars() or
WindowInsetsCompat.Type.displayCutout()
)
val density = activity.resources.displayMetrics.density