[Settings] Apply the SettingsDataService to the SIM page, calls/smscontroller

Calls/SmsDefaultSubscriptionController

Bug: 257197354
Test: atest DefaultSubscriptionControllerTest
Change-Id: I67cb2d3aa5ef3c6751d90b96db27a062071c8113
This commit is contained in:
Zoey Chen
2022-11-21 06:39:12 +00:00
parent 7292c4a017
commit 64330a235a
12 changed files with 294 additions and 262 deletions

View File

@@ -57,8 +57,10 @@ public class NetworkProviderCallsSmsFragment extends DashboardFragment {
@Override
protected List<AbstractPreferenceController> createPreferenceControllers(Context context) {
final List<AbstractPreferenceController> controllers = new ArrayList<>();
controllers.add(new CallsDefaultSubscriptionController(context, KEY_PREFERENCE_CALLS));
controllers.add(new SmsDefaultSubscriptionController(context, KEY_PREFERENCE_SMS));
controllers.add(new CallsDefaultSubscriptionController(context, KEY_PREFERENCE_CALLS,
getSettingsLifecycle(), this));
controllers.add(new SmsDefaultSubscriptionController(context, KEY_PREFERENCE_SMS,
getSettingsLifecycle(), this));
mNetworkProviderWifiCallingPreferenceController =
new NetworkProviderWifiCallingPreferenceController(context,
KEY_PREFERENCE_CATEGORY_CALLING);