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

Commit 94101c3f authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Merge cherrypicks of [14827360] into sc-d1-release

Change-Id: I06bda0925d5ac901453ae6866541cab66d70bb0b
parents 07752ee9 b907e443
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2002,7 +2002,9 @@ public final class ActiveServices {

        for (int i = 0; i < smap.mServicesByInstanceName.size(); i++) {
            final ServiceRecord sr = smap.mServicesByInstanceName.valueAt(i);
            if (id != sr.foregroundId || !pkg.equals(sr.appInfo.packageName)) {
            if (!sr.isForeground
                    || id != sr.foregroundId
                    || !pkg.equals(sr.appInfo.packageName)) {
                // Not this one; keep looking
                continue;
            }