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

Commit 968dea09 authored by Robin Lee's avatar Robin Lee
Browse files

DPMS: Replace ArrayList<>(1) with SingletonList

Change-Id: I78f8230d959f17c3aa2f248122973a8cd5c96693
parent 8469b86e
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.