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

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

Merge "Replace LinkedList by a more performant collection"

parents 9e587b5d caeb70ca
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3985,7 +3985,7 @@ public class UserBackupManagerService {
            String callerLogString = "BMS.filterAppsEligibleForBackup";
            TransportConnection transportConnection =
                    mTransportManager.getCurrentTransportClient(callerLogString);
            List<String> eligibleApps = new LinkedList<>();
            List<String> eligibleApps = new ArrayList<>();
            for (String packageName : packages) {
                if (mScheduledBackupEligibility.appIsRunningAndEligibleForBackupWithTransport(
                        transportConnection, packageName)) {
@@ -3995,7 +3995,7 @@ public class UserBackupManagerService {
            if (transportConnection != null) {
                mTransportManager.disposeOfTransportClient(transportConnection, callerLogString);
            }
            return eligibleApps.toArray(new String[eligibleApps.size()]);
            return eligibleApps.toArray(new String[0]);
        } finally {
            Binder.restoreCallingIdentity(oldToken);
        }