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

Commit b74df06f authored by Michael Wright's avatar Michael Wright Committed by Android Git Automerger
Browse files

am 605994d6: Merge "Fix off by one in ListView\'s upward focus traversal" into jb-mr2-dev

* commit '605994d6':
  Fix off by one in ListView's upward focus traversal
parents 15c9e15e 605994d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2433,7 +2433,7 @@ public class ListView extends AbsListView {
                    mFirstPosition;
        } else {
            final int lastPos = mFirstPosition + getChildCount() - 1;
            nextSelected = selectedPos != INVALID_POSITION && selectedPos < lastPos?
            nextSelected = selectedPos != INVALID_POSITION && selectedPos <= lastPos ?
                    selectedPos - 1 :
                    lastPos;
        }