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

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

Fix bug 3326380 - ListView motion scrolling stops too early when list

is padded

Change-Id: Iaca31e030aefc87f115d5022c2a42aefd73b88ea
parent fde43975
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4218,7 +4218,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
            return incrementalDeltaY != 0;
        }

        if (firstPosition + childCount == mItemCount && lastBottom <= end &&
        if (firstPosition + childCount == mItemCount &&
                lastBottom <= getHeight() - listPadding.bottom &&
                incrementalDeltaY <= 0) {
            // Don't need to move views up if the bottom of the last position
            // is already visible