question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecate OnActionListener in UndoHelper

See original GitHub issue

Despite the interface was introduced for the new UndoHelper, it is easy to perform same actions (preAction, postAction) by just using normal flow:

  • PreAction code can be simply moved before the undo instantiation.
  • As well as PostAction code can be performed after the undo instantiation.

Execution flow is preserved. So, no need of this callback interface.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
davideascommented, Dec 4, 2017

Thank you @rmunk, the issue comes from the action swipe that once done, I cannot restore the view to the original state, trust me i tried everything, but the RecyclerView has an internal X value that I cannot change even if, I update the item or I animate the view back you will see a glitch and still the view at wrong coordinates, so the only thing is to remove it and to press the undo to insert it again.

This week I will work again on this component to move it to the UI package, to fix the multiple swipe and maybe to rename it or change the behavior.

0reactions
rmunkcommented, Dec 6, 2017

@davideas it looks good now. Btw. thanks for this great library!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove an ActionListener from JButton - java - Stack Overflow
I want to remove the action listener from a JButton . But I have an ActionListener like this: btn.addActionListener(new ActionListener() { ...
Read more >
ActionListener (Java Platform SE 8 ) - Oracle Help Center
The listener interface for receiving action events. The class that is interested in processing an action event implements this interface, and the object ......
Read more >
javax.swing.JButton.removeActionListener java code examples
Java Swing: How to remove an anonymous ActionListener from a component. for( JButton currentButton: button ) { for( ActionListener al : currentButton.
Read more >
ActionSource (Java(TM) EE 8 Specification APIs)
Add a new ActionListener to the set of listeners interested in being notified when ActionEvent s occur. MethodBinding · getAction(). Deprecated.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found