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

Commit f889ed11 authored by Christopher Tate's avatar Christopher Tate
Browse files

Don't crash on boot

...when removing dangling preferred-activity entries.

Bug 15310848

Change-Id: Ibe9d82a06f8c608b866a2c3c6b286da2ededacca
parent b9a65de1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -11775,8 +11775,8 @@ public class PackageManagerService extends IPackageManager.Stub {
                    }
                }
                if (removed.size() > 0) {
                    for (int j=0; j<removed.size(); j++) {
                        PreferredActivity pa = removed.get(i);
                    for (int r=0; r<removed.size(); r++) {
                        PreferredActivity pa = removed.get(r);
                        Slog.w(TAG, "Removing dangling preferred activity: "
                                + pa.mPref.mComponent);
                        pir.removeFilter(pa);