-
Notifications
You must be signed in to change notification settings - Fork 10
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
Added direction information to callback interfaces #5
base: master
Are you sure you want to change the base?
Conversation
@@ -35,6 +39,8 @@ | |||
* The item being added back | |||
* @param position | |||
* The position of the item being added back | |||
* @param direction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marchy You added a new direction param
while the method definition is not updated. I think there is no benefit of passing direction
when an item is added back to the list, so probably no change should be made here. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @huan-nguyen this was a miss on my part. The direction info would be needed for an undo to be able to know which action was taken and thus how to undo that action.
I've added this parameter & associated data in and re-submitted 👍🏻
Hi @marchy, also thanks for this PR. Appreciate it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mismatch between javadoc and code (mentioned in a comment) needs to be fixed before merging.
bd253f1
to
ac38310
Compare
My pleasure @huan-nguyen, and apologies for the slowness. I've amended the commit, please have a look again and see if the PR is acceptable. |
ff40767
to
22fbe7e
Compare
22fbe7e
to
6a2ff1a
Compare
Hey @huan-nguyen could you review & accept this when you get a chance? |
Added the direction information to all callback interfaces so that you can perform the appropriate logic based on what the left/right swipe action is