Merge "[Settings] Replace getSimCount() API"

This commit is contained in:
Bonian Chen
2019-12-27 02:45:42 +00:00
committed by Gerrit Code Review
4 changed files with 117 additions and 73 deletions

View File

@@ -80,7 +80,7 @@ public class RoamingPreferenceControllerTest {
doReturn(mFragmentTransaction).when(mFragmentManager).beginTransaction();
mPreference = spy(new RestrictedSwitchPreference(mContext));
mController = new RoamingPreferenceController(mContext, "roaming");
mController = spy(new RoamingPreferenceController(mContext, "roaming"));
mController.init(mFragmentManager, SUB_ID);
mPreference.setKey(mController.getPreferenceKey());
}
@@ -118,7 +118,7 @@ public class RoamingPreferenceControllerTest {
@Test
public void handlePreferenceTreeClick_needDialog_showDialog() {
mController.mNeedDialog = true;
doReturn(true).when(mController).isDialogNeeded();
mController.handlePreferenceTreeClick(mPreference);