Triggering notifications when dual CDMA SIM combinations are detected

In Settings, catch the intent from Telephony about SIM combination
warning and show a notification about it.

Bug: 132631355
Test: manual - have two cdma capable subscriptions active, make sure
the notification is sent, and tapping on it leads to the helper page.

Change-Id: Ifd0e13781e4afc3bfd82415b3e51fd10176d9f9d
This commit is contained in:
Malcolm Chen
2019-05-31 15:35:08 -07:00
parent b731f4d5b9
commit 57badc2a82
3 changed files with 158 additions and 8 deletions

View File

@@ -7014,6 +7014,8 @@
<string name="help_uri_wifi_scanning_required" translatable="false"></string>
<!-- url for the bluetooth toggle required dialog help page -->
<string name="help_uri_bluetooth_screen" translatable="false"></string>
<!-- url for the SIM combination warning required dialog help page -->
<string name="help_uri_sim_combination_warning" translatable="false"></string>
<!-- User account title [CHAR LIMIT=30] -->
<string name="user_account_title">Account for content</string>
@@ -11254,4 +11256,12 @@
<!-- Title for enable MMS notification channel. [CHAR LIMIT=40] -->
<string name="enable_mms_notification_channel_title">MMS message</string>
<!-- Title for SIM combination warning. [CHAR LIMIT=80] -->
<string name="sim_combination_warning_notification_title">Issue with SIM combination</string>
<!-- Message for DSDS dual CDMA SIM combination warning. [CHAR LIMIT=100] -->
<string name="dual_cdma_sim_warning_notification_summary">Using <xliff:g id="operator_names" example="T-Mobile &amp; Verizon">%1$s</xliff:g> may limit functionality. Tap to learn more.</string>
<!-- Title for enable MMS notification channel. [CHAR LIMIT=40] -->
<string name="dual_cdma_sim_warning_notification_channel_title">SIM combination</string>
</resources>