Add android:key to all preferences.
This attribute is required for settings search.
Bug: 69384409
Test: ag/3241939
Change-Id: I31b5fd9dc689cd77a4c306a44beb21ff8d4d7b5b
diff --git a/res/xml/edit_emergency_info.xml b/res/xml/edit_emergency_info.xml
index c7512a9..f537c33 100644
--- a/res/xml/edit_emergency_info.xml
+++ b/res/xml/edit_emergency_info.xml
@@ -15,6 +15,7 @@
-->
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
+ android:key="edit_emergency_info_settings"
android:title="@string/app_label">
<PreferenceCategory
android:key="medical_info"
@@ -108,5 +109,6 @@
<com.android.settingslib.widget.FooterPreference
android:title="@string/emergency_info_footer"
+ android:key="footer_preference"
android:selectable="false"/>
</PreferenceScreen>
diff --git a/res/xml/edit_medical_info.xml b/res/xml/edit_medical_info.xml
index 178cda6..8bc2383 100644
--- a/res/xml/edit_medical_info.xml
+++ b/res/xml/edit_medical_info.xml
@@ -15,7 +15,8 @@
-->
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:key="edit_medical_info_settings">
<com.android.emergency.preferences.NameAutoCompletePreference
android:icon="@drawable/ic_account_circle"