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

Commit b3958d76 authored by Robin Lee's avatar Robin Lee Committed by Android (Google) Code Review
Browse files

Merge "DPMS: Replace ArrayList<>(1) with SingletonList"

parents 2a5d79aa 968dea09
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -4493,8 +4493,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
                if (user.isManagedProfile()) {
                    // If we are being asked about a managed profile just return
                    // keyguard features disabled by admins in the profile.
                    profiles = new ArrayList<UserInfo>(1);
                    profiles.add(user);
                    profiles = Collections.singletonList(user);
                } else {
                    // Otherwise return those set by admins in the user
                    // and its profiles.