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.
1 parent 87b4641 commit b478211Copy full SHA for b478211
android/capacitor/src/main/java/com/getcapacitor/CapacitorWebView.java
@@ -73,7 +73,7 @@ public void edgeToEdgeHandler(Bridge bridge) {
73
74
if (forceMargins || autoMargins) {
75
ViewCompat.setOnApplyWindowInsetsListener(this, (v, windowInsets) -> {
76
- Insets insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars());
+ Insets insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars() | WindowInsetsCompat.Type.displayCutout());
77
MarginLayoutParams mlp = (MarginLayoutParams) v.getLayoutParams();
78
mlp.leftMargin = insets.left;
79
mlp.bottomMargin = insets.bottom;
0 commit comments