[Settings] Cannot use UnsupportedAppUsage API, use #hasIccCard() to replace
Bug: 145967955 Test: make Change-Id: I8b948d1d416e1eb79e34be073b8ad81645d5ebb1
This commit is contained in:
@@ -141,7 +141,8 @@ public class SimLockPreferenceControllerTest {
|
||||
final List<SubscriptionInfo> subscriptionInfoList = new ArrayList<>();
|
||||
SubscriptionInfo info = mock(SubscriptionInfo.class);
|
||||
subscriptionInfoList.add(info);
|
||||
when(mTelephonyManager.hasIccCard(anyInt())).thenReturn(true);
|
||||
when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mTelephonyManager);
|
||||
when(mTelephonyManager.hasIccCard()).thenReturn(true);
|
||||
when(mSubscriptionManager.getActiveSubscriptionInfoList(eq(true)))
|
||||
.thenReturn(subscriptionInfoList);
|
||||
}
|
||||
|
Reference in New Issue
Block a user