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

Commit 6caa5659 authored by Rajeev Kumar's avatar Rajeev Kumar
Browse files

Add a break statement in the for loop to optimize it.

This loop checks a package using an array of whitelisted packages which can listen for notifications on low ram devices.

Test: atest NotificationManagerServiceTest
Change-Id: Ia3343623cadf7c491e2055fdbbb17f7cdebf2eb6
parent b61d30d4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7826,6 +7826,7 @@ public class NotificationManagerService extends SystemService {
                R.array.config_allowedManagedServicesOnLowRamDevices)) {
            if (whitelisted.equals(pkg)) {
                canUseManagedServices = true;
                break;
            }
        }