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

Added direction information to callback interfaces #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marchy
Copy link
Contributor

@marchy marchy commented Jun 12, 2017

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

@@ -35,6 +39,8 @@
* The item being added back
* @param position
* The position of the item being added back
* @param direction
Copy link
Owner

@huan-nguyen huan-nguyen Jun 18, 2017

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?

Copy link
Contributor Author

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 👍🏻

@huan-nguyen
Copy link
Owner

Hi @marchy, also thanks for this PR. Appreciate it!

Copy link
Owner

@huan-nguyen huan-nguyen left a 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.

@marchy marchy force-pushed the feature/callbacks branch from bd253f1 to ac38310 Compare August 15, 2017 16:53
@marchy
Copy link
Contributor Author

marchy commented Aug 15, 2017

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.

@marchy marchy force-pushed the feature/callbacks branch from ff40767 to 22fbe7e Compare August 15, 2017 17:12
@marchy marchy force-pushed the feature/callbacks branch from 22fbe7e to 6a2ff1a Compare August 15, 2017 17:31
@marchy
Copy link
Contributor Author

marchy commented Nov 21, 2017

Hey @huan-nguyen could you review & accept this when you get a chance?
Made the changes you suggested.

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