Loading src/com/android/settings/deviceinfo/storage/NonCurrentUserController.java +5 −5 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ public class NonCurrentUserController extends AbstractPreferenceController imple List<NonCurrentUserController> controllers = new ArrayList<>(); List<UserInfo> infos = userManager.getUsers(); for (UserInfo info : infos) { if (info.id == currentUserId || info.isProfile()) { if (info.id == currentUserId || !info.isFull()) { continue; } int[] profiles = userManager.getProfileIds(info.id, false /* enabledOnly */); Loading tests/robotests/src/com/android/settings/deviceinfo/storage/NonCurrentUserControllerTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ public class NonCurrentUserControllerTest { MockitoAnnotations.initMocks(this); mContext = RuntimeEnvironment.application; mPrimaryUser = new UserInfo(); mPrimaryUser.flags = UserInfo.FLAG_PRIMARY; mPrimaryUser.flags = UserInfo.FLAG_PRIMARY | UserInfo.FLAG_FULL; mController = new NonCurrentUserController(mContext, mPrimaryUser); ShadowActivityManager.setService(mActivityService); Loading Loading @@ -267,6 +267,8 @@ public class NonCurrentUserControllerTest { secondaryUser.id = 10; final UserInfo secondaryUser1 = spy(new UserInfo()); secondaryUser1.id = 11; secondaryUser.flags = UserInfo.FLAG_FULL; secondaryUser1.flags = UserInfo.FLAG_FULL; userInfo.add(mPrimaryUser); userInfo.add(secondaryUser); userInfo.add(secondaryUser1); Loading Loading
src/com/android/settings/deviceinfo/storage/NonCurrentUserController.java +5 −5 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ public class NonCurrentUserController extends AbstractPreferenceController imple List<NonCurrentUserController> controllers = new ArrayList<>(); List<UserInfo> infos = userManager.getUsers(); for (UserInfo info : infos) { if (info.id == currentUserId || info.isProfile()) { if (info.id == currentUserId || !info.isFull()) { continue; } int[] profiles = userManager.getProfileIds(info.id, false /* enabledOnly */); Loading
tests/robotests/src/com/android/settings/deviceinfo/storage/NonCurrentUserControllerTest.java +3 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ public class NonCurrentUserControllerTest { MockitoAnnotations.initMocks(this); mContext = RuntimeEnvironment.application; mPrimaryUser = new UserInfo(); mPrimaryUser.flags = UserInfo.FLAG_PRIMARY; mPrimaryUser.flags = UserInfo.FLAG_PRIMARY | UserInfo.FLAG_FULL; mController = new NonCurrentUserController(mContext, mPrimaryUser); ShadowActivityManager.setService(mActivityService); Loading Loading @@ -267,6 +267,8 @@ public class NonCurrentUserControllerTest { secondaryUser.id = 10; final UserInfo secondaryUser1 = spy(new UserInfo()); secondaryUser1.id = 11; secondaryUser.flags = UserInfo.FLAG_FULL; secondaryUser1.flags = UserInfo.FLAG_FULL; userInfo.add(mPrimaryUser); userInfo.add(secondaryUser); userInfo.add(secondaryUser1); Loading