Merge change 20960 into donut
* changes: Fix issue #2049588: App widget can crash causing system to be unable to boot
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user