BR: safeAreaInsets and userArea report incorrect values

Yet another problem is that older devices do not mantain kiosk mode correctly, as was reported here:

The poster came up with a solution but I’ve found that it only works partially. In my tests (Galaxy 5, API 26) the status bar appears as soon as a selection is made in a pop-up menu.

I’ve found that what does work with older devices is to use a fullscreen theme, but then JUCE cannot report the size of the safe area (top cutout) on newer devices!

My solution for that is to use two different themes. Since the support for cutouts was introduced with API Level 28, I am using a non-fullscreen theme from that level on (placed in the folder values-v28) and a fullscreen one for previous API’s (in the values folder). I am not sure if this is the correct approach, but it seems to work.

Still, JUCE team, please take a look into fixing the safe area insets. It’s very hard to get an app to look right without them!