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

Commit 3c093f94 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Show location permission group, even when fixed.

System fixed permissions are typically hidden in the UI, but we need
to special-case the Location group to help guide the user to another
part of Settings where they can manage location access.

Bug: 21805447
Change-Id: Ia6b30b4651c9ed42e0279e729e544b654940dde6
parent a9ec5bcd
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -79,7 +79,8 @@ public class Utils {
    public static boolean shouldShowPermission(AppPermissionGroup group) {
        // We currently will not show permissions fixed by the system.
        // which is what the system does for system components.
        if (group.isSystemFixed()) {
        if (group.isSystemFixed()
                && !Manifest.permission_group.LOCATION.equals(group.getName())) {
            return false;
        }

@@ -102,7 +103,8 @@ public class Utils {
    public static boolean shouldShowPermission(PermissionApp app) {
        // We currently will not show permissions fixed by the system
        // which is what the system does for system components.
        if (app.isSystemFixed()) {
        if (app.isSystemFixed()
                && !Manifest.permission_group.LOCATION.equals(app.getPermissionGroup().getName())) {
            return false;
        }