Skip to content

Commit 115c5e9

Browse files
committed
fix: keep ErrorReportActivity content below the status bar on edge-to-edge
targetSdk 35 forces edge-to-edge, so the debug crash screen's root layout drew behind the status bar and clipped the top error banner. Setting fitsSystemWindows on the root RelativeLayout pads the content by the system window insets (status bar, nav bar, display cutout); it is a no-op on older targets where the decor consumes those insets. Closes #2053
1 parent 6d16eb2 commit 115c5e9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎test-app/app/src/debug/res/layout/error_activity.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
android:layout_height="match_parent"
66
xmlns:app="http://schemas.android.com/apk/res-auto"
77
android:background="@color/gray"
8+
android:fitsSystemWindows="true"
89
tools:context="com.tns.ErrorReportActivity"
910
android:theme="@style/Widget.AppCompat.Light.ActionBar">
1011

0 commit comments

Comments
 (0)