Skip to content

Stop Android system bars overlapping the app UI#906

Merged
microbit-grace merged 5 commits into
mainfrom
older-android
Jun 10, 2026
Merged

Stop Android system bars overlapping the app UI#906
microbit-grace merged 5 commits into
mainfrom
older-android

Conversation

@microbit-grace

Copy link
Copy Markdown

Fixes #897

The overlap occurs for Chromium versions below 140. The safe area community plugin addresses this, however, our setOnApplyWindowInsetsListener that keeps the UI from resizing when the keyboard is opened stops the plugin from working. This is because our setOnApplyWindowInsetsListener overwrites the plugin's.

To address this, the safe area community plugin has been dropped and the fix for the safe area and the system bar styling have been moved to MainActivity.java. Now we only have one setOnApplyWindowInsetsListener that applies the fix for safe area and prevents UI from resizing when the keyboard is opened.

The overlap occurs below Chromium 140. The safe area community plugin addresses this, however, our keyboard intervention that keeps the UI from resizing when the keyboard is opened stops the plugin from working.

We have moved the logic from the plugin to MainActivity.java as phase 1. In phase 2, we will remove the plugin and implement the system bar styling light/dark via other means.
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

Preview build will be at
https://review-createai.microbit.org/older-android/

@microbit-grace microbit-grace marked this pull request as draft June 9, 2026 16:10
@microbit-grace

microbit-grace commented Jun 9, 2026

Copy link
Copy Markdown
Author

Tested on Android 12 Chromium <140.

pic-edc08b92-c8fe-4ce2-8aa8-1c29d1beea34 pic-8b601a2b-44cc-4de5-8930-4a2e18b68d pic-c86a898c-cb60-4931-9fe9-75c71df99925

Tested on Android 15 Chromium > 140.

pic-edc08b92-c8fe-4ce2-8aa8-1c29d1beea34 pic-c86a898c-cb60-4931-9fe9-75c71df99925 pic-8b601a2b-44cc-4de5-8930-4a2e18b68d

@microbit-grace microbit-grace marked this pull request as ready for review June 10, 2026 08:15

@microbit-matt-hillsdon microbit-matt-hillsdon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, seems logical. Relying on your screenshots rather than retesting it.

@microbit-grace microbit-grace merged commit 9a488bd into main Jun 10, 2026
3 checks passed
@microbit-grace microbit-grace deleted the older-android branch June 10, 2026 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.

Android 11 & 12: Action bar overlaps app UI

2 participants