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

Commit 9acb4c90 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by android-build-merger
Browse files

Merge "Fix stupid bug." into oc-dev

am: 36fd25ee

Change-Id: I096332ea215a70f40da85cfbdba1140eb770fef4
parents d1a0cdc8 36fd25ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2808,7 +2808,7 @@ public final class ActiveServices {
    void removeUninstalledPackageLocked(String packageName, int userId) {
        ServiceMap smap = mServiceMap.get(userId);
        if (smap != null && smap.mActiveForegroundApps.size() > 0) {
            for (int i = smap.mActiveForegroundApps.size(); i >= 0; i--) {
            for (int i = smap.mActiveForegroundApps.size()-1; i >= 0; i--) {
                ActiveForegroundApp aa = smap.mActiveForegroundApps.valueAt(i);
                if (aa.mPackageName.equals(packageName)) {
                    smap.mActiveForegroundApps.removeAt(i);