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

Commit b482a001 authored by Michael Wright's avatar Michael Wright
Browse files

Fix off by one in ListView's upward focus traversal

Bug: 7985315
Change-Id: Ic67c8e346d6b51a5cfb05cc7d0c2b145b591b2db
parent 9e176c8b
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;
        }