am 662e4a45: Merge "Fix ANR which could occur for collection widgets with very large items" into jb-dev

* commit '662e4a456bf1f7a3a2a2c971f7c0861ef1c159e0':
  Fix ANR which could occur for collection widgets with very large items
This commit is contained in:
Adam Cohen
2012-05-22 14:45:24 -07:00
committed by Android Git Automerger

View File

@@ -614,7 +614,7 @@ public class RemoteViewsAdapter extends BaseAdapter implements Handler.Callback
maxDistIndexNonRequested = i;
maxDistNonRequested = dist;
}
if (dist > maxDist) {
if (dist >= maxDist) {
// maxDist/maxDistIndex will store the index of the farthest position
// regardless of whether it was directly requested or not
maxDistIndex = i;