Merge "Correct position of divider bar when get display insets" into udc-dev

This commit is contained in:
Treehugger Robot
2023-05-18 10:22:07 +00:00
committed by Android (Google) Code Review

View File

@@ -709,7 +709,8 @@ public final class SplitLayout implements DisplayInsetsController.OnInsetsChange
return context.getSystemService(WindowManager.class)
.getMaximumWindowMetrics()
.getWindowInsets()
.getInsets(WindowInsets.Type.systemBars() | WindowInsets.Type.displayCutout())
.getInsetsIgnoringVisibility(WindowInsets.Type.systemBars()
| WindowInsets.Type.displayCutout())
.toRect();
}