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

Commit 6fdf7401 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Return copy of mEnforcingAdmin from getEnforcingAdminsOnUser" into main

parents 85ae83ec 2768a041
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1588,7 +1588,7 @@ final class DevicePolicyEngine {
    private Set<EnforcingAdmin> getEnforcingAdminsOnUser(int userId) {
        synchronized (mLock) {
            return mEnforcingAdmins.contains(userId)
                    ? mEnforcingAdmins.get(userId) : Collections.emptySet();
                    ? new HashSet<>(mEnforcingAdmins.get(userId)) : Collections.emptySet();
        }
    }