Misc tweaks to Safety settings UI
- Remove emergency info setting tile from Safety setting page. The emergency info setting is now injected as emergency contact & medical info settings. - Add an icon to emergency gesture setting - Add an icon place holder to WEA setting Bug: 184261824 Test: manual Change-Id: I8bb9abfac054b5745e978695043584ea1266d53e
This commit is contained in:
35
res/drawable/ic_emergency_gesture_24dp.xml
Normal file
35
res/drawable/ic_emergency_gesture_24dp.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<!--
|
||||
~ Copyright (C) 2021 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:tint="?android:attr/colorControlNormal"
|
||||
android:viewportHeight="48"
|
||||
android:viewportWidth="48">
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M4,34L5,30H12V26H8C5.79,26 4,24.21 4,22V18C4,15.79 5.79,14 8,14H16L15,18H8V22H12C14.21,22 16,23.79 16,26V30C16,32.21 14.21,34 12,34H4Z" />
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M32,34L33,30H40V26H36C33.79,26 32,24.21 32,22V18C32,15.79 33.79,14 36,14H44L43,18H36V22H40C42.21,22 44,23.79 44,26V30C44,32.21 42.21,34 40,34H32Z" />
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M22,30H26V18H22V30ZM18,30C18,32.21 19.79,34 22,34H26C28.21,34 30,32.21 30,30V18C30,15.79 28.21,14 26,14H22C19.79,14 18,15.79 18,18V30Z" />
|
||||
</vector>
|
@@ -20,20 +20,15 @@
|
||||
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||
android:key="safety_and_emergency_screen"
|
||||
android:title="@string/emergency_settings_preference_title">
|
||||
<Preference
|
||||
android:key="emergency_info"
|
||||
android:title="@string/emergency_info_title"
|
||||
android:summary="@string/summary_placeholder"
|
||||
android:order="0"
|
||||
settings:controller="com.android.settings.accounts.EmergencyInfoPreferenceController"/>
|
||||
<Preference
|
||||
android:key="gesture_emergency_summary"
|
||||
android:title="@string/emergency_gesture_screen_title"
|
||||
android:icon="@drawable/ic_emergency_gesture_24dp"
|
||||
android:order="100"
|
||||
android:fragment="com.android.settings.emergency.EmergencyGestureSettings"
|
||||
settings:controller="com.android.settings.emergency.EmergencyGestureEntrypointPreferenceController" />
|
||||
<com.android.settingslib.widget.LayoutPreference
|
||||
android:key="more_settings"
|
||||
android:key="more_emergency_settings"
|
||||
android:layout="@layout/more_settings_button"
|
||||
android:order="180"
|
||||
android:selectable="false"
|
||||
@@ -43,6 +38,7 @@
|
||||
android:key="app_and_notif_cell_broadcast_settings"
|
||||
android:title="@string/cell_broadcast_settings"
|
||||
android:order="200"
|
||||
settings:iconSpaceReserved="true"
|
||||
settings:useAdminDisabledSummary="true">
|
||||
<intent
|
||||
android:action="android.intent.action.MAIN"
|
||||
|
Reference in New Issue
Block a user