chore: sync upstream PR #8454 - Fix navigation bar overlay in edge-to-edge mode on Android

Merged
RI
3mo ago
+89-31

Upstream PR Sync

This PR syncs changes from an external contributor's PR on the official Capacitor repository.

Original PR

  • PR: #8454
  • Title: Fix navigation bar overlay in edge-to-edge mode on Android
  • Author: @stormbeforesunsetbee

Automation

  • CI will run automatically
  • Claude Code will review for security/breaking changes
  • If approved, this PR will be auto-merged
  • A new release will be published automatically

Synced from upstream by Capacitor+ Bot

Summary by CodeRabbit

  • New Features

    • More consistent translucent and transparent navigation-bar handling aligned with app themes
    • Safer safe-area support for layouts across newer WebView versions
    • System-bar styling and layout configuration are reapplied when returning to the app
  • Bug Fixes

    • Improved safe-area and inset calculations across Android versions and devices
    • More reliable keyboard detection and bottom padding while the keyboard is visible
    • Better tracking of system-bar visibility to prevent layout shifts
    • Preserved requested bar styles when applying theme-based settings