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

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

Merge "Do not emit WTF if there is no delegate"

parents d3dda315 41760103
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6103,7 +6103,9 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
        synchronized (getLockObject()) {
            delegates = getDelegatePackagesInternalLocked(scope, userId);
        }
        if (delegates.size() != 1) {
        if (delegates.size() == 0) {
            return null;
        } else if (delegates.size() > 1) {
            Slog.wtf(LOG_TAG, "More than one delegate holds " + scope);
            return null;
        }