No Android SafeZone support for Rounded Corners

When using the USafeZone widget, iOS is getting data for rounded corners that avoids the UI getting cut off by the corners of the screen. However, it looks like Android doesn’t have the same support and UI is getting cut off on rounded corners. Android does appear to have an API to get rounded corner data.

  1. Are rounded corners intended to be supported and there’s something I’ve missed in setup?
  2. If they’re not currently supported:
    1. Is there a recommended approach to support the rounded corners on our end in the meantime?
    2. Is this functionality in the roadmap? Would it be possible for it to please be added to the roadmap?

Steps to Reproduce

  1. Obtain an Android device with rounded screen corners
  2. Create UI that contains a UI element in each corner
  3. Wrap the UI in a SafeZone widget
  4. Package project for Android (and iOS)
  5. Observe UI getting cut off on corners of Android device (and iOS has safe areas that keep UI out of the corners)

Hi Mattea,

Currently, it appears we support DisplayCutout to determine window insets.

Does the ‘APK Packaging’ -> ‘Use display cutout region?’ setting get you closer to the desired behaviour?

Best regards.

Hi Mattea,

We are looking at implementing this. I’ll reach out with a CL once it’s available.

Best regards.

Hi Mattea,

This has been implemented at CL 43630781.

Best regards.

Hi Mattea,

Odd that it’s not coming up. Here is the Github link: https://github.com/EpicGames/UnrealEngine/commit/eaededd8b954561692f1a929a81f37c7fc716ea7

Best regards.

Hello! This functionality does work for the cutout that includes the camera on Android, but does not appear to affect the rounded corners.

I haven’t been able to find this update in Github or our source control copy. Is it possibly under a different number or not yet published?