switch SIM refactor to support MEP
To create new dialog for MEP. It is a simple UI for testing, not the final version. Bug: 199902896 Test: local build pass. Change-Id: Ief4299e775c0758e4b886d5eff13bd482f8c8ab3 Merged-In: Ief4299e775c0758e4b886d5eff13bd482f8c8ab3
This commit is contained in:
committed by
SongFerng Wang
parent
37358798bc
commit
59a6ecbde2
@@ -160,8 +160,10 @@ public class SimDialogActivity extends FragmentActivity {
|
||||
final TelephonyManager telephonyManager = getSystemService(
|
||||
TelephonyManager.class).createForSubscriptionId(subId);
|
||||
subscriptionManager.setDefaultDataSubId(subId);
|
||||
telephonyManager.setDataEnabled(true);
|
||||
Toast.makeText(this, R.string.data_switch_started, Toast.LENGTH_LONG).show();
|
||||
if (subId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
|
||||
telephonyManager.setDataEnabled(true);
|
||||
Toast.makeText(this, R.string.data_switch_started, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
|
||||
private void setDefaultCallsSubId(final int subId) {
|
||||
|
Reference in New Issue
Block a user