Skip to content

[minibrowser] Apply system bar insets to main view#190

Merged
aperezdc merged 1 commit intomainfrom
aperezdc/apply-insets
Mar 31, 2025
Merged

[minibrowser] Apply system bar insets to main view#190
aperezdc merged 1 commit intomainfrom
aperezdc/apply-insets

Conversation

@aperezdc
Copy link
Copy Markdown
Member

Add an insets listener to apply the system bar insets to the browser main view, ensuring that the main view will not cover the bars. While at it, opt-in to edge-to-edge mode explicitly to ensure the same behaviour also on older Android releases.

In Android 15 applications targeting SDK 35 are opted in to edge-to-edge mode, which makes applications cover as much of the screen as possible but may result in undesired overlaps if unhandled. For now the handling is as simple as possible to get the existing behaviour back.

Fixes #189

Add an insets listener to apply the system bar insets to the browser
main view, ensuring that the main view will not cover the bars. While
at it, opt-in to edge-to-edge mode explicitly to ensure the same
behaviour also on older Android releases.

In Android 15 applications targeting SDK 35 are opted in to edge-to-edge
mode, which makes applications cover as much of the screen as possible
but may result in undesired overlaps if unhandled. For now the handling
is as simple as possible to get the existing behaviour back.

Fixes #189
@aperezdc aperezdc requested a review from neodesys March 31, 2025 11:46
@aperezdc aperezdc self-assigned this Mar 31, 2025
@aperezdc aperezdc merged commit 3739989 into main Mar 31, 2025
6 checks passed
@aperezdc aperezdc deleted the aperezdc/apply-insets branch March 31, 2025 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minibrowser URL entry overlaps system navigation bar on Android 15

2 participants