Activity size is calculated incorrectly for full screen (immersive) apps in devices with notch/cutout

#1

Steps to repro:

  • Use device with a notch/cutout, or simulate one using Android dev settings
  • Create new GUI project for Android using Projucer
  • Set @android:style/Theme.NoTitleBar.Fullscreen as theme
  • Set main window as kiosk mode component

-> The app is not filling the entire screen. The GUI gets drawn underneath the top cutout area as it should, but there’s a gap in the bottom of the screen. I assume Juce gets the screen dimensions from somewhere where cutout area is not taken into account.

0 Likes

#2

I got my fullscreen app working by forcing Display userArea to equal Display totalArea in juce_android_Windowing.cpp … but this isn’t a general purpose solution of course.

0 Likes