Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb8d35c9 authored by Patrick Huang's avatar Patrick Huang
Browse files

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
parent c0ff08c3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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>

+1 −0
Original line number Diff line number Diff line
@@ -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