Closed NiGhTTraX closed 4 months ago
I think this is an emulator problem as I was able to test your sample code on both a Pixel 7 emulator with device skin enabled and a real Pixel 7 (running Android 14) and I only experience what you screenshot with the emulator. Also, on the emulator, pre-installed and system apps like Messages and Settings demonstrate the same issue.
Are you sure you experience the same on a real device? Also, would you look at pre-installed apps on the emulator, are they displayed incorrect too?
You're right, I can't reproduce it anymore on the real device. I must have been doing something else wrong and then simplified my example too much. Sorry for the trouble.
There is defintely something weird going on with the Pixel 7 emulator I think its display cutout emulation is buggy. The same worked fine on a Pixel 6 even though it has a similar cutout, but content goes under it on the Pixel 7.
Interesting, I tried out other emulator variants and the only incorrect one I found is the Pixel 7 image with Android 13 (API 33) with Google Play. Both the Android 14 Google Play image and the Android 13 image without Google Play simulates the cutout correctly... I might report this to Google if I find time for it.
Code
Result
I tested it in the emulator and on the real device: