Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i find a bug when Mode.Single #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

i find a bug when Mode.Single #123

wants to merge 1 commit into from

Conversation

songhanghang
Copy link

when i open the second item, i find the first call thread is onOpen(SwipeLayout layout) at the second item position, then call the onClose(SwipeLayout layout) at first item position,

So, Even if i have one item is opened, but mOpenPosition = INVALID_POSITION;

when i open the second item, i find the first call thread is onOpen(SwipeLayout layout) at the second item  position,  then call the onClose(SwipeLayout layout) at first item position, 

So, Even if i have one item is opened,  but  mOpenPosition = INVALID_POSITION;
@@ -193,6 +193,7 @@ public void onClose(SwipeLayout layout) {
if(mode == Mode.Multiple){
mOpenPositions.remove(position);
}else{
if(position == mOpenPosition)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

else if() and brackets

@bradroid
Copy link

bradroid commented Jun 2, 2015

Hello, does this pull request fix this issue: #162

phileo pushed a commit to phileo/AndroidSwipeLayout that referenced this pull request Aug 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants