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

Commit fee20911 authored by Adam Powell's avatar Adam Powell
Browse files

Fix bug with AbsListView position scrolling

Change-Id: I91338f0533178417c874325f5f126d1b5fbb5f92
parent 1c6743c4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2773,7 +2773,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
            final int lastPos = firstPos + getChildCount() - 1;
            
            int viewTravelCount = 0;
            if (position < firstPos) {
            if (position <= firstPos) {
                final int boundPosFromLast = lastPos - boundPosition;
                if (boundPosFromLast < 1) {
                    // Moving would shift our bound position off the screen. Abort.
@@ -2789,7 +2789,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                    viewTravelCount = posTravel;
                    mMode = MOVE_UP_POS;
                }
            } else if (position > lastPos) {
            } else if (position >= lastPos) {
                final int boundPosFromFirst = boundPosition - firstPos;
                if (boundPosFromFirst < 1) {
                    // Moving would shift our bound position off the screen. Abort.