File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
platform/android/java/lib/src/main/java/org/godotengine/godot Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -392,7 +392,12 @@ class Godot private constructor(val context: Context) {
392392 ViewCompat .setOnApplyWindowInsetsListener(rootView) { v: View , insets: WindowInsetsCompat ->
393393 v.post {
394394 if (useImmersive.get()) {
395- v.setPadding(0 , 0 , 0 , 0 )
395+ if (isEditorBuild()) {
396+ val windowInsets = insets.getInsets(WindowInsetsCompat .Type .displayCutout())
397+ v.setPadding(windowInsets.left, windowInsets.top, windowInsets.right, windowInsets.bottom)
398+ } else {
399+ v.setPadding(0 , 0 , 0 , 0 )
400+ }
396401 } else {
397402 val windowInsets = insets.getInsets(getInsetType())
398403 v.setPadding(windowInsets.left, windowInsets.top, windowInsets.right, windowInsets.bottom)
You can’t perform that action at this time.
0 commit comments