Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7513d98 authored by Yu-Han Yang's avatar Yu-Han Yang
Browse files

Add showSystem to RecentLocationAccess (Settings)

Bug: 180533061
Test: on device
Change-Id: Ie232bc84d7875897316e978ed3deac9656ebec5f
parent 2a6d2e4a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
            }
+1 −1
Original line number Diff line number Diff line
@@ -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);