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

Commit 298a6c6b authored by Svetoslav's avatar Svetoslav
Browse files

Fix collection iteration index.

bug:17387880

Change-Id: Ic637ce8fa2da87d6f21a222bd70bf627953f57e3
parent def58cbf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1863,7 +1863,7 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku

    private void deleteProviderLocked(Provider provider) {
        int N = provider.widgets.size();
        for (int i = 0; i < N; i++) {
        for (int i = N - 1; i >= 0; i--) {
            Widget widget = provider.widgets.remove(i);
            // Call back with empty RemoteViews
            updateAppWidgetInstanceLocked(widget, null, false);