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

Commit 2c4827be authored by Sunny Shao's avatar Sunny Shao
Browse files

Use FooterPreference in xml to replace the header

Fixes: 141450664
Test: manual test
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.enterprise
Change-Id: Ia6ec0e363b9a472ff104ffbc529856a21840af27
parent c6ef1edd
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -19,13 +19,6 @@
                  android:key="enterprise_privacy_settings"
                  android:title="@string/enterprise_privacy_settings">

    <!-- Header -->
    <Preference android:key="enterprise_privacy_header"
                android:order="100"
                android:icon="@drawable/ic_info_outline_24dp"
                android:summary="@string/enterprise_privacy_header"
                android:selectable="false"/>

    <PreferenceCategory android:key="exposure_category"
                        android:order="200"
                        android:title="@string/enterprise_privacy_exposure_category"
@@ -125,4 +118,10 @@
                    android:title="@string/enterprise_privacy_failed_password_wipe_work"
                    android:selectable="false"/>
    </PreferenceCategory>

    <com.android.settingslib.widget.FooterPreference
        android:key="enterprise_privacy_footer"
        android:title="@string/enterprise_privacy_header"
        android:selectable="false"
        settings:searchable="false"/>
</PreferenceScreen>