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

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

Fix bug 3352112 - crash in AbsListView.smoothScrollBy

Change-Id: I00b4e5855a1c0861993670a38ed2cd946fd18594
parent 783e6c8b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -4106,8 +4106,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
        final int topLimit = getPaddingTop();
        final int bottomLimit = getHeight() - getPaddingBottom();

        if (distance == 0 ||
                firstPos == INVALID_POSITION ||
        if (distance == 0 || mItemCount == 0 || childCount == 0 ||
                (firstPos == 0 && getChildAt(0).getTop() == topLimit && distance < 0) ||
                (lastPos == mItemCount - 1 &&
                        getChildAt(childCount - 1).getBottom() == bottomLimit && distance > 0)) {