diff options
author | Svetoslav <svetoslavganov@google.com> | 2014-09-04 11:20:18 -0700 |
---|---|---|
committer | Svetoslav <svetoslavganov@google.com> | 2014-09-04 11:20:25 -0700 |
commit | 298a6c6b29798647b3d8f12d0723b1e49fc8b8da (patch) | |
tree | dacf488c92b865c119bb0ef033c69195ee8affec /services/appwidget | |
parent | def58cbffc32d12445b60ed1a0d8bb81d8dc6625 (diff) | |
download | frameworks_base-298a6c6b29798647b3d8f12d0723b1e49fc8b8da.zip frameworks_base-298a6c6b29798647b3d8f12d0723b1e49fc8b8da.tar.gz frameworks_base-298a6c6b29798647b3d8f12d0723b1e49fc8b8da.tar.bz2 |
Fix collection iteration index.
bug:17387880
Change-Id: Ic637ce8fa2da87d6f21a222bd70bf627953f57e3
Diffstat (limited to 'services/appwidget')
-rw-r--r-- | services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java b/services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java index 7f7e5c3..2ef806f 100644 --- a/services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java +++ b/services/appwidget/java/com/android/server/appwidget/AppWidgetServiceImpl.java @@ -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); |