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

Commit f96f52ea authored by Svetoslav's avatar Svetoslav Committed by Android (Google) Code Review
Browse files

Merge "Fix collection iteration index." into lmp-dev

parents 18aa9f65 298a6c6b
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);