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

Commit 002716d4 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #2049588: App widget can crash causing system to be unable to boot

parent b3fa1084
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -1009,8 +1009,7 @@ class AppWidgetService extends IAppWidgetService.Stub
        if (success) {
        if (success) {
            // delete any hosts that didn't manage to get connected (should happen)
            // delete any hosts that didn't manage to get connected (should happen)
            // if it matters, they'll be reconnected.
            // if it matters, they'll be reconnected.
            final int N = mHosts.size();
            for (int i=mHosts.size()-1; i>=0; i--) {
            for (int i=0; i<N; i++) {
                pruneHostLocked(mHosts.get(i));
                pruneHostLocked(mHosts.get(i));
            }
            }
        } else {
        } else {