Feature #1238
openReimplement Display Under Cutouts on Android >= 15 (API >= 35)
0%
Description
Android changed the way they handled cutouts in Android 15 (API >= 35).
https://developer.android.com/about/versions/15/behavior-changes-15#ux
The effect of this is that, while using Material Components (com.google.android.material), `LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS`
does nothing if `setFitsSystemWindows` has ever been `true`.
https://developer.android.com/reference/android/view/View#setFitsSystemWindows(boolean)
This prevents switching in and out of full-screen browsing mode with displaying under the cutouts enabled in full-screen browsing mode but not otherwise. This option was removed for API >=35 in Feature #1237: Bump Target API to 35 (Android 15).
The fix probably involves switching to Material 3 Components ( androidx.compose.material3), mentioned in the original article, but doing so would be a significant UI overhaul. I am not inclined to go that route just for this feature, but if I end up switching to Material 3 (or whatever comes along after it) for other reasons, then it would be worth looking at reimplementing displaying under the cutouts in full-screen browsing mode.