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

Commit 3e7b44fa authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

Merge "Don't perform ListView click events for INVALID_POSITION. Addresses bug 2329294"

parents 03abb817 c7426628
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1636,6 +1636,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
            if (mDataChanged) return;

            if (mAdapter != null && mItemCount > 0 &&
                    mClickMotionPosition != INVALID_POSITION &&
                    mClickMotionPosition < mAdapter.getCount() && sameWindow()) {
                performItemClick(mChild, mClickMotionPosition, getAdapter().getItemId(
                        mClickMotionPosition));