Fix ImeiInfoPreferenceControllerTest

For test case updatePreference_simSlotWithoutSim_notSetEnabled,
mSecondSimPreference is a mock, instead of check the default value of
isEnabled(), verify it's setEnabled() not called.

Fix: 279880808
Test: RobolectricTest
Change-Id: I72064820754e053def46bdbf10317189c7ac608f
This commit is contained in:
Chaohui Wang
2023-04-28 15:52:25 +08:00
parent 2094622da9
commit 8470122ad1
2 changed files with 9 additions and 4 deletions

View File

@@ -150,7 +150,6 @@ public class ImeiInfoPreferenceController extends BasePreferenceController {
@VisibleForTesting
protected void updatePreference(Preference preference, int simSlot) {
SubscriptionInfo subInfo = getSubscriptionInfo(simSlot);
preference.setTitle(getTitle(simSlot));
preference.setSummary(getSummary());
}