Merge pull request #109818 from syntaxerror247/safe-area-regression
Fix safe area regression on older Android versions
This commit is contained in:
commit
4ebf67c12d
1 changed files with 6 additions and 1 deletions
|
|
@ -225,7 +225,12 @@ public class GodotIO {
|
|||
}
|
||||
|
||||
if (topView != null) {
|
||||
int insetTypes = WindowInsetsCompat.Type.systemBars() | WindowInsetsCompat.Type.displayCutout();
|
||||
int insetTypes;
|
||||
if (godot.isInImmersiveMode()) {
|
||||
insetTypes = WindowInsetsCompat.Type.displayCutout();
|
||||
} else {
|
||||
insetTypes = WindowInsetsCompat.Type.systemBars() | WindowInsetsCompat.Type.displayCutout();
|
||||
}
|
||||
|
||||
if (topView.getRootWindowInsets() != null) {
|
||||
WindowInsetsCompat insetsCompat = WindowInsetsCompat.toWindowInsetsCompat(topView.getRootWindowInsets(), topView);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue