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

Commit 626c26fb authored by Dianne Hackborn's avatar Dianne Hackborn Committed by android-build-merger
Browse files

Merge "Fix stupid bug." into oc-dev am: 36fd25ee

am: 9acb4c90

Change-Id: I512e780496b4f9d6c60714de06ba1705a1ca1ca3
parents 0f64feb4 9acb4c90
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2808,7 +2808,7 @@ public final class ActiveServices {
    void removeUninstalledPackageLocked(String packageName, int userId) {
    void removeUninstalledPackageLocked(String packageName, int userId) {
        ServiceMap smap = mServiceMap.get(userId);
        ServiceMap smap = mServiceMap.get(userId);
        if (smap != null && smap.mActiveForegroundApps.size() > 0) {
        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);
                ActiveForegroundApp aa = smap.mActiveForegroundApps.valueAt(i);
                if (aa.mPackageName.equals(packageName)) {
                if (aa.mPackageName.equals(packageName)) {
                    smap.mActiveForegroundApps.removeAt(i);
                    smap.mActiveForegroundApps.removeAt(i);