Add showSystem to RecentLocationAccess (Settings)
Bug: 180533061 Test: on device Change-Id: Ie232bc84d7875897316e978ed3deac9656ebec5f
This commit is contained in:
@@ -85,7 +85,8 @@ public class RecentLocationAccessPreferenceController extends LocationBasePrefer
|
|||||||
final Context prefContext = mCategoryRecentLocationRequests.getContext();
|
final Context prefContext = mCategoryRecentLocationRequests.getContext();
|
||||||
final List<RecentLocationAccesses.Access> recentLocationAccesses = new ArrayList<>();
|
final List<RecentLocationAccesses.Access> recentLocationAccesses = new ArrayList<>();
|
||||||
final UserManager userManager = UserManager.get(mContext);
|
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)) {
|
if (isRequestMatchesProfileType(userManager, access, mType)) {
|
||||||
recentLocationAccesses.add(access);
|
recentLocationAccesses.add(access);
|
||||||
}
|
}
|
||||||
|
@@ -98,7 +98,7 @@ public class RecentLocationAccessPreferenceControllerTest {
|
|||||||
@Test
|
@Test
|
||||||
@Ignore
|
@Ignore
|
||||||
public void updateState_whenAppListIsEmpty_shouldDisplayTitleTextAndDetailsText() {
|
public void updateState_whenAppListIsEmpty_shouldDisplayTitleTextAndDetailsText() {
|
||||||
doReturn(new ArrayList<>()).when(mRecentLocationApps).getAppListSorted();
|
doReturn(new ArrayList<>()).when(mRecentLocationApps).getAppListSorted(false);
|
||||||
mController.displayPreference(mScreen);
|
mController.displayPreference(mScreen);
|
||||||
mController.updateState(mLayoutPreference);
|
mController.updateState(mLayoutPreference);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user