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

Commit c6afd813 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "PackageManager#queryIntentServices breaks its contract." into klp-dev

parents 2c854022 cb247866
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -448,6 +448,10 @@ public final class PrintManagerService extends IPrintManager.Stub {
                        .queryIntentServicesAsUser(intent, PackageManager.GET_SERVICES,
                                getChangingUserId());

                if (installedServices == null) {
                    return;
                }

                final int installedServiceCount = installedServices.size();
                for (int i = 0; i < installedServiceCount; i++) {
                    ServiceInfo serviceInfo = installedServices.get(i).serviceInfo;