Add a settings suggestion for EmergencyInfo.
Change-Id: I807776db5ff263da5d0edae10ef167e478c999c0
Fix: 62203140
Test: manual, and runtest --path packages/apps/EmergencyInfo/tests
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 08f0b16..de6bbcb 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -50,6 +50,17 @@
<action android:name="android.settings.EDIT_EMERGENCY_INFO" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="com.android.settings.suggested.category.FIRST_IMPRESSION" />
+ </intent-filter>
+ <meta-data android:name="com.android.settings.dismiss" android.value="11,15,30" />
+ <meta-data android:name="com.android.settings.title"
+ android:resource="@string/settings_suggestion_title" />
+ <meta-data android:name="com.android.settings.summary"
+ android:resource="@string/settings_suggestion_body" />
+ <meta-data android:name="com.android.settings.icon"
+ android:resource="@drawable/ic_local_hospital_24dp" />
</activity>
<activity
diff --git a/res/drawable/ic_local_hospital_24dp.xml b/res/drawable/ic_local_hospital_24dp.xml
new file mode 100644
index 0000000..8689f51
--- /dev/null
+++ b/res/drawable/ic_local_hospital_24dp.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24.0"
+ android:viewportHeight="24.0"
+ android:tint="?android:attr/colorControlNormal">
+ <path
+ android:pathData="M0 0h24v24H0z" />
+ <path
+ android:pathData="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z"
+ android:fillColor="#FFFFFFFF" />
+</vector>