Merge "Use FooterPreference in xml to replace the header"

This commit is contained in:
TreeHugger Robot
2019-09-24 01:51:46 +00:00
committed by Android (Google) Code Review

View File

@@ -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>