Merge "Fix crash in ExternalSourceDetailPreferenceController." into pi-dev

This commit is contained in:
Doris Ling
2018-05-01 19:58:56 +00:00
committed by Android (Google) Code Review
2 changed files with 14 additions and 1 deletions

View File

@@ -101,4 +101,12 @@ public class ExternalSourceDetailPreferenceControllerTest {
verify(mPreference).setSummary(summary);
}
@Test
public void isPotentialAppSource_nullPackageInfo_shouldNotCrash() {
when(mUserManager.isManagedProfile()).thenReturn(false);
mController.isPotentialAppSource();
// no crash
}
}