cordova-android icon indicating copy to clipboard operation
cordova-android copied to clipboard

fix: opaque navigation bar in edge to edge

Open Chuckytuh opened this issue 1 month ago • 1 comments

Platforms affected

Android 15

Motivation and Context

Possible fix for https://github.com/apache/cordova-android/issues/1866

Description

When in edge to edge, i.e. using AndroidEdgeToEdge preference as true and a BackgroundColor is provided, the navigation bar is opaque with a background color set.

AndroidEdgeToEdge = false and android:windowOptOutEdgeToEdgeEnforcement = true AndroidEdgeToEdge = true and android:windowOptOutEdgeToEdgeEnforcement = true AndroidEdgeToEdge = false and android:windowOptOutEdgeToEdgeEnforcement = false AndroidEdgeToEdge = true and android:windowOptOutEdgeToEdgeEnforcement = false
Image Image Image Image

Testing

Manually tested the change by creating a cordova application using [email protected], modified the theme and ran the app on an emulator

Checklist

  • [x] I've run the tests to see all new and existing tests pass
  • [ ] I added automated test coverage as appropriate for this change
  • [ ] Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
  • [ ] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
  • [ ] I've updated the documentation if necessary

Chuckytuh avatar Nov 14 '25 01:11 Chuckytuh

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 60.79%. Comparing base (5bca218) to head (3339974). :warning: Report is 9 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1867   +/-   ##
=======================================
  Coverage   60.79%   60.79%           
=======================================
  Files          23       23           
  Lines        4811     4811           
=======================================
  Hits         2925     2925           
  Misses       1886     1886           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov-commenter avatar Nov 14 '25 01:11 codecov-commenter