Merge "[Settings] Do not creat multiple database"

This commit is contained in:
Zoey Chen
2022-10-30 13:17:25 +00:00
committed by Android (Google) Code Review
8 changed files with 128 additions and 44 deletions

View File

@@ -95,7 +95,7 @@ public class MobileNetworkSummaryControllerTest {
doReturn(mSubscriptionManager).when(mContext).getSystemService(SubscriptionManager.class);
doReturn(mEuiccManager).when(mContext).getSystemService(EuiccManager.class);
doReturn(mUserManager).when(mContext).getSystemService(UserManager.class);
mMobileNetworkRepository = new MobileNetworkRepository(mContext, mMobileNetworkCallback);
mMobileNetworkRepository = MobileNetworkRepository.create(mContext, mMobileNetworkCallback);
mLifecycleOwner = () -> mLifecycle;
mLifecycle = new Lifecycle(mLifecycleOwner);
mMobileNetworkRepository.addRegister(mLifecycleOwner);