Android: Better fullscreen support.#520
Conversation
This flag is needed to properly hide display cutout on Android devices, Without it a black space appears on the status bar. Refer to https://stackoverflow.com/questions/49190381/fullscreen-app-with-displaycutout
|
IIRC FLAG_FULLSCREEN was deprecated and now we need to do some manual work with hiding the status bar. If it is not hidden - its probably a bug and is worth doing some research on what went wrong in miniquad's implementation!
|
|
Hmm. You are right about that, it's deprecated. What i would typically do to hide everything is to use WindowInsetsControllerCompat. But because MiniquadActivity is not a subclass of AppCompatActivity, I think the best solution is to check if api >= 30, and then hide display cutout and status bar using WindowInsetsController.. |
This flag is needed to properly hide display cutout on Android devices,
Without it a black space appears on the status bar.
Refer to
https://stackoverflow.com/questions/49190381/fullscreen-app-with-displaycutout