Add method to disable "disable" button in installed app UI
OEMs can now force grey out the "disable" button for important apps on device. Change-Id: Ic075a07ad12592bd60238c7b1c9ab84932c8db3c Fix: 38250742 Test: make RunSettingsRoboTests
This commit is contained in:
@@ -245,6 +245,12 @@ public final class ApplicationFeatureProviderImplTest {
|
||||
.isEqualTo(expectedManagedUserActivities);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getKeepEnabledPackages_shouldContainNothing() {
|
||||
assertThat(mProvider.getKeepEnabledPackages())
|
||||
.isEmpty();
|
||||
}
|
||||
|
||||
private void setUpUsersAndInstalledApps() {
|
||||
when(mUserManager.getProfiles(UserHandle.myUserId())).thenReturn(Arrays.asList(
|
||||
new UserInfo(MAIN_USER_ID, "main", UserInfo.FLAG_ADMIN),
|
||||
|
Reference in New Issue
Block a user