[Provider Model] Connect carrier network issue fix

- Need to check if the data is enabled on the second SIM in the case of
dual SIM.

Bug: 177411771
Test: manual test
Change-Id: Ieead7a4550628d5380b8d0150cfd7a67c47980ca
This commit is contained in:
Weng Su
2021-01-16 07:42:04 +00:00
parent 88ffca9af9
commit 99dbb43f0c
4 changed files with 36 additions and 10 deletions

View File

@@ -371,6 +371,7 @@ public class ProviderModelSliceTest {
@Test
public void onNotifyChange_intentPrimaryAction_shouldConnectCarrierNetwork() {
when(mTelephonyManager.isDataEnabled()).thenReturn(true);
Intent intent = mMockProviderModelSlice.getBroadcastIntent(mContext).getIntent();
mMockProviderModelSlice.onNotifyChange(intent);