Skip to content

Commit 5edbe25

Browse files
committed
Cleaned up click position in PerformClick runnable
1 parent 95146e4 commit 5edbe25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/src/main/java/com/etsy/android/grid/ExtendableListView.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2744,7 +2744,8 @@ public void run() {
27442744
final View view = getChildAt(motionPosition); // a fix by @pboos
27452745

27462746
if (view != null) {
2747-
performItemClick(view, motionPosition + mFirstPosition, adapter.getItemId(motionPosition + mFirstPosition));
2747+
final int clickPosition = motionPosition + mFirstPosition;
2748+
performItemClick(view, clickPosition, adapter.getItemId(clickPosition));
27482749
}
27492750
}
27502751
}

0 commit comments

Comments
 (0)