fuselibs icon indicating copy to clipboard operation
fuselibs copied to clipboard

SystemUI.DeviceMargins for Android

Open mortoray opened this issue 7 years ago • 2 comments

Currently DeviceMargins just reports float4(0) for Android. I suspect there is someway to get at the unsafe areas on devices that have margins.

I don't have any devices with bevels to play around with this, thus couldn't implement it. I've marked the window().deviceMargins as experimental for now. It works on iOS using safeAreaInsets.

mortoray avatar Feb 12 '18 08:02 mortoray

This seems ugly to do on android. For example https://gist.github.com/hamakn/8939eb68a920a6d7a498

nekronos avatar Mar 05 '18 11:03 nekronos

@mortoray I can test for you

nekronos avatar Mar 05 '18 11:03 nekronos