SDL3 started to provide safe area, and it uses setOnApplyWindowInsetsListener which overrides View.onApplyWindowInsets with View.OnApplyWindowInsetsListener.onApplyWindowInsets.
This PR makes AndroidGameSurface override View.OnApplyWindowInsetsListener.onApplyWindowInsets instead, and removes LayoutInDisplayCutoutMode as it is now set in SDL side.
I also tried using SDL-provided safe area, but it doesn't seem to work like our current implementation, so I think we can still keep ours for now.
SDL3 started to provide safe area, and it uses
setOnApplyWindowInsetsListener
which overridesView.onApplyWindowInsets
withView.OnApplyWindowInsetsListener.onApplyWindowInsets
.This PR makes AndroidGameSurface override
View.OnApplyWindowInsetsListener.onApplyWindowInsets
instead, and removesLayoutInDisplayCutoutMode
as it is now set in SDL side.I also tried using SDL-provided safe area, but it doesn't seem to work like our current implementation, so I think we can still keep ours for now.