Loading src/com/android/settings/location/RecentLocationAccessPreferenceController.java +2 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,8 @@ public class RecentLocationAccessPreferenceController extends LocationBasePrefer final Context prefContext = mCategoryRecentLocationRequests.getContext(); final List<RecentLocationAccesses.Access> recentLocationAccesses = new ArrayList<>(); final UserManager userManager = UserManager.get(mContext); for (RecentLocationAccesses.Access access : mRecentLocationApps.getAppListSorted()) { for (RecentLocationAccesses.Access access : mRecentLocationApps.getAppListSorted( /* showSystemApps= */ false)) { if (isRequestMatchesProfileType(userManager, access, mType)) { recentLocationAccesses.add(access); } Loading tests/robotests/src/com/android/settings/location/RecentLocationAccessPreferenceControllerTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ public class RecentLocationAccessPreferenceControllerTest { @Test @Ignore public void updateState_whenAppListIsEmpty_shouldDisplayTitleTextAndDetailsText() { doReturn(new ArrayList<>()).when(mRecentLocationApps).getAppListSorted(); doReturn(new ArrayList<>()).when(mRecentLocationApps).getAppListSorted(false); mController.displayPreference(mScreen); mController.updateState(mLayoutPreference); Loading Loading
src/com/android/settings/location/RecentLocationAccessPreferenceController.java +2 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,8 @@ public class RecentLocationAccessPreferenceController extends LocationBasePrefer final Context prefContext = mCategoryRecentLocationRequests.getContext(); final List<RecentLocationAccesses.Access> recentLocationAccesses = new ArrayList<>(); final UserManager userManager = UserManager.get(mContext); for (RecentLocationAccesses.Access access : mRecentLocationApps.getAppListSorted()) { for (RecentLocationAccesses.Access access : mRecentLocationApps.getAppListSorted( /* showSystemApps= */ false)) { if (isRequestMatchesProfileType(userManager, access, mType)) { recentLocationAccesses.add(access); } Loading
tests/robotests/src/com/android/settings/location/RecentLocationAccessPreferenceControllerTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ public class RecentLocationAccessPreferenceControllerTest { @Test @Ignore public void updateState_whenAppListIsEmpty_shouldDisplayTitleTextAndDetailsText() { doReturn(new ArrayList<>()).when(mRecentLocationApps).getAppListSorted(); doReturn(new ArrayList<>()).when(mRecentLocationApps).getAppListSorted(false); mController.displayPreference(mScreen); mController.updateState(mLayoutPreference); Loading