Skip to content

Commit 566b3ba

Browse files
committed
chore(android): apply edge to edge if supported or enforced
1 parent 7373123 commit 566b3ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetActivity.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import android.content.IntentFilter;
2525
import android.content.res.Configuration;
2626
import android.net.Uri;
27+
import android.os.Build;
2728
import android.os.Bundle;
2829
import android.view.View;
2930
import android.view.ViewGroup;
@@ -94,7 +95,9 @@ public static void launch(Context context, String url) {
9495
}
9596

9697
public static void addTopBottomInsets(@NonNull Window w, @NonNull View v) {
97-
if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.VANILLA_ICE_CREAM) return;
98+
99+
// Only apply if edge-to-edge is supported (API 30+) or enforced (API 35+)
100+
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) return;
98101

99102
View decorView = w.getDecorView();
100103

0 commit comments

Comments
 (0)