Skip to content

Commit 7edc708

Browse files
committed
callback fixed
1 parent 2f506ea commit 7edc708

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

androidarcmenu/src/main/java/com/hackplan/androidarcmenu/ArcMenuLayout.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ public boolean onTouchEvent(MotionEvent event) {
124124
if (lastFocusIndex != -1) {
125125
AnimatorUtils.openMenu(this, lastFocusIndex);
126126
show = false;
127-
if (onClickBtnListener != null) onClickBtnListener.onClickArcMenu(lastFocusIndex);
127+
if (onClickBtnListener != null) {
128+
onClickBtnListener.onClickArcMenu((int)getChildAt(lastFocusIndex).getTag());
129+
}
128130
} else if (hideOnTouchUp) {
129131
AnimatorUtils.hideMenu(this, touchPoint);
130132
show = false;

0 commit comments

Comments
 (0)