Skip to content

Android: Respect display cutout setting on API 35+ - #19361

Open
Starlightbotanist wants to merge 2 commits into
libretro:masterfrom
Starlightbotanist:android-display-cutout-safe-area
Open

Android: Respect display cutout setting on API 35+#19361
Starlightbotanist wants to merge 2 commits into
libretro:masterfrom
Starlightbotanist:android-display-cutout-safe-area

Conversation

@Starlightbotanist

Copy link
Copy Markdown
Contributor

Description

Starting with Android 15, applications targeting API 35 or later are laid out into the display cutout area regardless of the requested cutout mode. This causes the Fullscreen Over Notch setting to be ignored.

When notch drawing is disabled, resize and position the NativeActivity window using the display cutout safe insets. Restore match-parent dimensions when notch drawing is enabled so the window continues to adapt correctly across orientation changes.

Retain the existing layoutInDisplayCutoutMode behavior on earlier Android versions.

Related Issues

Fixes #19281
Caused by these changes 53021d4

Reviewers

Merge with caution, I only have a single device with a notch to test on. Pixel 6 with android 17.

Starlightbotanist and others added 2 commits August 6, 2026 21:25
Android 15 treats all display cutout modes as always when an application targets API 35 or later, causing the Fullscreen Over Notch setting to be ignored.

When notch drawing is disabled, resize and position the NativeActivity window using the display cutout safe insets. Restore match-parent dimensions when notch drawing is enabled so the window continues to adapt correctly across orientation changes.

Retain the existing layoutInDisplayCutoutMode behavior on earlier Android versions.
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.

[REGRESSION] Android no longer respecting "notch"

1 participant