daimajia / AndroidSwipeLayout

The Most Powerful Swipe Layout!
MIT License
12.38k stars 2.67k forks source link

onOpen is called multiple time #390

Open tsakmalis opened 7 years ago

tsakmalis commented 7 years ago

Hello,

I think that there is a bug which hasn't solved yet. I try to swipe my ListItem at sometimes when I swipe a ListItem the onOpen is called multiple times and the "position" value is different. So the problem is that I cannot remove this item from my list.

`viewHolder.swipeLayout.addSwipeListener(new SimpleSwipeListener() {

            @Override
            public void onOpen(SwipeLayout layout) {

                mItemManger.closeAllExcept(layout);
                Log.v("Position",""+position);

            }

        });`
nguyen-vinasource commented 6 years ago

I got the same issue. Also, the "public void onStartOpen(SwipeLayout layout)" is called many times. I expect this one should be called once it start open. Look like no one take care of these issues.

alex-bo commented 6 years ago

Looks like this is a duplicate of issue #469. I have posted my solution there.