We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 221731f + 3bc1fa0 commit 4ebf67cCopy full SHA for 4ebf67c
platform/android/java/lib/src/org/godotengine/godot/GodotIO.java
@@ -225,7 +225,12 @@ public int[] getDisplaySafeArea() {
225
}
226
227
if (topView != null) {
228
- int insetTypes = WindowInsetsCompat.Type.systemBars() | WindowInsetsCompat.Type.displayCutout();
+ int insetTypes;
229
+ if (godot.isInImmersiveMode()) {
230
+ insetTypes = WindowInsetsCompat.Type.displayCutout();
231
+ } else {
232
+ insetTypes = WindowInsetsCompat.Type.systemBars() | WindowInsetsCompat.Type.displayCutout();
233
+ }
234
235
if (topView.getRootWindowInsets() != null) {
236
WindowInsetsCompat insetsCompat = WindowInsetsCompat.toWindowInsetsCompat(topView.getRootWindowInsets(), topView);
0 commit comments