We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7a9328a + 35fbe2a commit 662e4a4Copy full SHA for 662e4a4
core/java/android/widget/RemoteViewsAdapter.java
@@ -614,7 +614,7 @@ private int getFarthestPositionFrom(int pos) {
614
maxDistIndexNonRequested = i;
615
maxDistNonRequested = dist;
616
}
617
- if (dist > maxDist) {
+ if (dist >= maxDist) {
618
// maxDist/maxDistIndex will store the index of the farthest position
619
// regardless of whether it was directly requested or not
620
maxDistIndex = i;
0 commit comments