Hide carrier service package in Wi-Fi data usage settings

- When there is no specified SubscriptionInfo, Wi-Fi data usage will be displayed. In this case, the carrier service package also needs to be hidden.

- Fix failing test cases in DataUsageListTest

Bug: 273167633
Bug: 280021214
Test: manual test

Change-Id: I66ff8a28d9e7f7db77c8a210cb36676a07fc2c7d
This commit is contained in:
Weng Su
2023-05-10 16:34:11 +08:00
parent 910530482a
commit f65c4530e4
2 changed files with 14 additions and 6 deletions

View File

@@ -104,6 +104,7 @@ public class DataUsageListTest {
ReflectionHelpers.setField(mDataUsageList, "services", mNetworkServices);
doReturn(mLoaderManager).when(mDataUsageList).getLoaderManager();
mDataUsageList.mLoadingViewController = mock(LoadingViewController.class);
doNothing().when(mDataUsageList).updateSubscriptionInfoEntity();
}
@Test