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

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

Merge cherrypicks of [14827953] into sc-release

Change-Id: I1c37ab88f56ef9191b1f1adef63e852301bf9cc5
parents c8e2d916 a349ddac
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;
            }