Add default calls/SMS subscription prefs to mobile details page
This adds prefs to the the details page for mobile network subscriptions that appear in multi-SIM mode. They show which subscription is set as the default for calls and SMS respectively, and let the user change what the default is for each. They can be set to either a specific subscription, or set to "Ask every time". Bug: 122670283 Test: make RunSettingsRoboTests Change-Id: Id2b23e4b5c3d1b5c04b5766e73fc8202c05d8f75
This commit is contained in:
@@ -10360,6 +10360,17 @@
|
||||
<string name="mobile_data_settings_title">Mobile data</string>
|
||||
<!-- Mobile network settings screen, title of Mobile data switch preference [CHAR LIMIT=NONE] -->
|
||||
<string name="mobile_data_settings_summary">Access data using mobile network</string>
|
||||
<!-- Mobile network settings screen, title of item showing the name of the default subscription
|
||||
that will be used for calls. This only appears in multi-SIM mode. [CHAR LIMIT=NONE] -->
|
||||
<string name="calls_preference">Calls preference</string>
|
||||
<!-- Mobile network settings screen, title of item showing the name of the default subscription
|
||||
that will be used for SMS messages. This only appears in multi-SIM mode. [CHAR LIMIT=NONE] -->
|
||||
<string name="sms_preference">SMS preference</string>
|
||||
<!-- Mobile network settings screen, a label in a chooser dialog that appears when choosing the
|
||||
default subscription to use for either calls or SMS when in multi-SIM mode. This label means
|
||||
that the user will be asked which mobile network subscription to use every time they place a
|
||||
call or send an SMS, instead of defaulting to one particular subscription. [CHAR LIMIT=40]-->
|
||||
<string name="calls_and_sms_ask_every_time">Ask every time</string>
|
||||
|
||||
<!-- Summary of the 'Mobile network' item on the Network & internet page when there is no mobile
|
||||
service setup yet (eg no SIM card inserted and no eSIM configured). Tapping it leads to a
|
||||
|
@@ -17,24 +17,37 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||
android:key="mobile_network_pref_screen"
|
||||
settings:initialExpandedChildrenCount="5">
|
||||
settings:initialExpandedChildrenCount="7">
|
||||
|
||||
<com.android.settings.datausage.DataUsageSummaryPreference
|
||||
android:key="status_header"
|
||||
android:visibility="gone"
|
||||
android:selectable="false" />
|
||||
|
||||
<ListPreference
|
||||
android:key="calls_preference"
|
||||
android:title="@string/calls_preference"
|
||||
settings:controller="com.android.settings.network.telephony.CallsDefaultSubscriptionController"
|
||||
settings:allowDividerAbove="true" />
|
||||
|
||||
<ListPreference
|
||||
android:key="sms_preference"
|
||||
android:title="@string/sms_preference"
|
||||
settings:controller="com.android.settings.network.telephony.SmsDefaultSubscriptionController" />
|
||||
|
||||
<Preference
|
||||
android:key="cdma_lte_data_service_key"
|
||||
android:title="@string/cdma_lte_data_service"
|
||||
settings:controller="com.android.settings.network.telephony.DataServiceSetupPreferenceController">
|
||||
</Preference>
|
||||
settings:controller="com.android.settings.network.telephony.DataServiceSetupPreferenceController"
|
||||
settings:allowDividerAbove="true"
|
||||
settings:allowDividerBelow="false" />
|
||||
|
||||
<SwitchPreference
|
||||
android:key="mobile_data_enable"
|
||||
android:title="@string/mobile_data_settings_title"
|
||||
android:summary="@string/mobile_data_settings_summary"
|
||||
settings:controller="com.android.settings.network.telephony.MobileDataPreferenceController"/>
|
||||
settings:controller="com.android.settings.network.telephony.MobileDataPreferenceController"
|
||||
settings:allowDividerAbove="true"/>
|
||||
|
||||
<com.android.settingslib.RestrictedSwitchPreference
|
||||
android:key="button_roaming_key"
|
||||
|
Reference in New Issue
Block a user