Launch customized panic setting intent when configured.

When RRO provides a custom intent package for panic settings and there
is an app to handle it, launch the custom intent instead of the AOSP
version.

Bug: 169946508
Test: robotests
Change-Id: I8479c6e0dd4a90b5a03640035b710ae4ccc7809c
This commit is contained in:
Fan Zhang
2020-10-12 13:08:42 -07:00
parent 6208cbfd9d
commit c63a13c858
5 changed files with 129 additions and 5 deletions

View File

@@ -465,6 +465,9 @@
<!-- Whether to show panic button gesture in Settings -->
<bool name="config_show_panic_gesture_settings">true</bool>
<!-- Optional package name if another 1p app wants to take over the panic settings UI -->
<string name="panic_gesture_settings_package"></string>
<!-- Whether to show the Preference for Adaptive connectivity -->
<bool name="config_show_adaptive_connectivity">false</bool>

View File

@@ -10996,6 +10996,9 @@
<!-- Preference title to enable feature for calling emergency services at panic/distress moments[CHAR_LIMIT=60]-->
<string name="panic_gesture_screen_title">Panic button</string>
<!-- Preference title to enable feature for calling emergency services at panic/distress moments[CHAR_LIMIT=60]-->
<string name="panic_gesture_entrypoint_summary">Managed by <xliff:g id="app_name" example="Emergency Info">%1$s</xliff:g></string>
<!-- Preference summary to enable feature for calling emergency services at panic/distress moments[CHAR_LIMIT=NONE]-->
<string name="panic_gesture_screen_summary">Start the emergency SOS actions by pressing the power button quickly 5 times.</string>