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

Commit 2628c678 authored by Adam Cohen's avatar Adam Cohen Committed by Android Git Automerger
Browse files

am 662e4a45: Merge "Fix ANR which could occur for collection widgets with very...

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

* commit '662e4a45':
  Fix ANR which could occur for collection widgets with very large items
parents 49413bcc 662e4a45
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;