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

Commit 75124d79 authored by Bonian Chen's avatar Bonian Chen Committed by Gerrit Code Review
Browse files

Merge "Remove PreferenceCategory wrapper"

parents d1998a6f 91d40cdb
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -15,10 +15,11 @@
  limitations under the License.
  -->

<FrameLayout
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    android:layout_height="wrap_content"
    android:minHeight="?android:attr/listPreferredItemHeight">

    <Button
        android:id="@+id/night_display_turn_on_button"
@@ -26,7 +27,7 @@
        android:layout_marginStart="@dimen/screen_margin_sides"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="start" />
        android:layout_gravity="center_vertical" />

    <Button
        android:id="@+id/night_display_turn_off_button"
@@ -34,6 +35,6 @@
        android:layout_marginStart="@dimen/screen_margin_sides"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="start" />
        android:layout_gravity="center_vertical" />

</FrameLayout>
 No newline at end of file
</LinearLayout>
 No newline at end of file
+11 −12
Original line number Diff line number Diff line
@@ -209,16 +209,15 @@
        android:key="erase_sim"
        android:persistent="false"
        android:title="@string/mobile_network_erase_sim"
        settings:allowDividerBelow="true"
        settings:controller="com.android.settings.network.telephony.DeleteSimProfilePreferenceController"/>

    <PreferenceCategory
        android:key="footer_container"
        android:title="@string/summary_placeholder"
        android:layout="@layout/preference_category_no_label"
        settings:controller="com.android.settings.network.telephony.DisableSimFooterPreferenceController">
    <com.android.settingslib.widget.FooterPreference
        android:key="disable_sim_explanation"
            android:title="@string/mobile_network_disable_sim_explanation" />
    </PreferenceCategory>
        android:title="@string/mobile_network_disable_sim_explanation"
        android:selectable="false"
        settings:allowDividerAbove="true"
        settings:searchable="false"
        settings:controller="com.android.settings.network.telephony.DisableSimFooterPreferenceController"/>

</PreferenceScreen>
+9 −4
Original line number Diff line number Diff line
@@ -49,11 +49,16 @@
        android:title="@string/night_display_title"
        android:selectable="false"
        android:layout="@layout/night_display_activation_button"
        settings:allowDividerBelow="true"
        settings:keywords="@string/keywords_display_night_display"
        settings:controller="com.android.settings.display.NightDisplayActivationPreferenceController" />

    <PreferenceCategory android:key="night_display_footer_category">
        <com.android.settingslib.widget.FooterPreference />
    </PreferenceCategory>
    <com.android.settingslib.widget.FooterPreference
        android:key="night_display_footer"
        android:title="@string/night_display_text"
        android:selectable="false"
        settings:allowDividerAbove="true"
        settings:searchable="false"
        settings:controller="com.android.settings.display.NightDisplayFooterPreferenceController"/>

</PreferenceScreen>