Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc39e633 authored by Tiger Huang's avatar Tiger Huang
Browse files

Stop making PreferenceFragment fit system windows

A PreferenceFragment might not fill its window. Setting
android:fitsSystemWindows="true" might cause redundant padding if the
fragment is away from the WindowInsets.

Instead, the app which uses PreferenceFragment should handle insets.

This CL partially reverts commit:
213033ec

Bug: 377864165
Bug: 309578419
Flag: com.android.window.flags.enforce_edge_to_edge
Test: atest CtsPreferenceTestCases
Change-Id: Ic55f0e3c6264982c0ba5aeffba20f26ddf9052ee
parent 271ede58
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -19,7 +19,6 @@


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:orientation="vertical"
    android:fitsSystemWindows="true"
    android:layout_height="match_parent"
    android:layout_height="match_parent"
    android:layout_width="match_parent"
    android:layout_width="match_parent"
    android:background="@android:color/transparent"
    android:background="@android:color/transparent"
+0 −1
Original line number Original line Diff line number Diff line
@@ -19,7 +19,6 @@


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:orientation="vertical"
    android:fitsSystemWindows="true"
    android:layout_height="match_parent"
    android:layout_height="match_parent"
    android:layout_width="match_parent"
    android:layout_width="match_parent"
    android:background="@android:color/transparent"
    android:background="@android:color/transparent"