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

Commit ae50ffbf authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Only get apps with permission granted." into qt-dev

parents f90c24d1 db516d98
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -71,7 +71,8 @@ public class TopLevelLocationPreferenceController extends BasePreferenceControll
            return;
        }
        mContext.getSystemService(PermissionControllerManager.class).countPermissionApps(
                Arrays.asList(ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION), 0,
                Arrays.asList(ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION),
                PermissionControllerManager.COUNT_ONLY_WHEN_GRANTED,
                (numApps) -> {
                    setLocationAppCount(numApps);
                }, null);