Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Checklist
What is the current behavior?
On newer Android versions (API 29+), especially Android 14–16 (edge-to-edge navigation),
the
ActionBaris rendered under the status bar.This causes the ActionBar title, menu items, and navigation button to overlap with the system status bar.
This is due to
Toolbarnot applyingWindowInsetstop padding on newer Android layouts.Related issue: #10856
What is the new behavior?
During
createNativeView()on Android:setFitsSystemWindows(true)for correct inset handling.OnApplyWindowInsetsListeneris attached to read the top system inset.This ensures the ActionBar is correctly positioned below the status bar on all Android versions.
Fixes #10856.
BREAKING CHANGES
None.
This patch does not modify public APIs or change behavior for older Android versions.
It only resolves layout misalignment under edge-to-edge mode on Android 10+.