Add config for showing/hiding emergency setting entry

Add a definition for a boolean config value that will be used by
devices to show or hide the "Safety & emergency" setting entry in
Android top-level Settings.

Bug: 205581282
Test: manual on devices in question, PTS
Change-Id: Iec838505c4eea9c0d6c5db1379f9b4651eea7778
This commit is contained in:
Patrick Huang
2021-12-17 08:38:15 +00:00
parent c0ff08c398
commit eb8d35c9cc
2 changed files with 4 additions and 0 deletions

View File

@@ -492,6 +492,9 @@
<!-- Whether to show Smooth Display feature in Settings Options -->
<bool name="config_show_smooth_display">false</bool>
<!-- Whether to show emergency settings in top-level Settings -->
<bool name="config_show_emergency_settings">true</bool>
<!-- Whether to show emergency gesture in Settings -->
<bool name="config_show_emergency_gesture_settings">true</bool>

View File

@@ -162,6 +162,7 @@
android:icon="@drawable/ic_settings_emergency"
android:order="-20"
android:fragment="com.android.settings.emergency.EmergencyDashboardFragment"
settings:isPreferenceVisible="@bool/config_show_emergency_settings"
settings:highlightableMenuKey="@string/menu_key_emergency"/>
<com.android.settings.widget.HomepagePreference