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

Commit 7477129b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Combine the checks for DO/PO in isAdminAffectedByRestriction()." into udc-dev am: 5bbe99a2

parents 2dc45e47 5bbe99a2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -12574,9 +12574,8 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
            case UserManager.RESTRICTION_NOT_SET:
                return false;
            case UserManager.RESTRICTION_SOURCE_DEVICE_OWNER:
                return !isDeviceOwner(admin, userId);
            case UserManager.RESTRICTION_SOURCE_PROFILE_OWNER:
                return !isProfileOwner(admin, userId);
                return !(isDeviceOwner(admin, userId) || isProfileOwner(admin, userId));
            default:
                return true;
        }