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

Commit af597682 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix stupid bug.

Test: manual

Change-Id: I1e3bd86eb3e000111721bad82bebdfb491c2e5de
parent f1a4b507
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);