Why doesn't my NativeActivity draw in the camera cutout area?

PressRex profile image
by PressRex
Why doesn't my NativeActivity draw in the camera cutout area?

My GameActivity is derived from NativeActivity and I set these window flags in onCreate.

window.setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS)

According to the documentation this will have my activity draw on the entire screen, including the cutout area, but that's not happening. Is there something else one must do in order for a NativeActivity to draw on the entire screen?

Source: View source

PressRex profile image
by PressRex

Subscribe to New Posts

Lorem ultrices malesuada sapien amet pulvinar quis. Feugiat etiam ullamcorper pharetra vitae nibh enim vel.

Success! Now Check Your Email

To complete Subscribe, click the confirmation link in your inbox. If it doesn’t arrive within 3 minutes, check your spam folder.

Ok, Thanks

Read More