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

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

Merge "Removing unnecessary call to ArraySet#toArray"

parents cf7ce6cb 3dea1c79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2914,7 +2914,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {

    private void ensureUnknownSourcesRestrictionForProfileOwners() {
        synchronized (this) {
            for (int userId : mOwners.getProfileOwnerKeys().toArray(new Integer[0])) {
            for (int userId : mOwners.getProfileOwnerKeys()) {
                if (!mUserManager.isManagedProfile(userId) ||
                        Settings.Secure.getIntForUser(mContext.getContentResolver(),
                        Settings.Secure.UNKNOWN_SOURCES_DEFAULT_REVERSED, 0, userId) == 0) {