AndroidSwipeLayout icon indicating copy to clipboard operation
AndroidSwipeLayout copied to clipboard

onOpen is called multiple time

Open tsakmalis opened this issue 9 years ago • 2 comments

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);

            }

        });`

tsakmalis avatar Oct 27 '16 09:10 tsakmalis

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.

nguyen-vinasource avatar Dec 14 '17 03:12 nguyen-vinasource

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

alex-bo avatar Jun 20 '18 03:06 alex-bo