jenzz/Android-UndoBar — pull request #10 by Shyish (2014-10-02 12:51:14+00:00)
Title: Notify when the user explicitly hides the UndoBar.

This is very useful for any app using this library on a Listview, example:

Imagine a list of elements.
Each element can be deleted.
When an element is deleted, a new instance of UndoBar is created with a listener, so in the onHide we will really delete the element (make a request to a WS, DB, etc.)*
When another element is deleted, we SHOULD hide the previous UndoBar, create a new one with new params and a new listener.

So the problem here is that if somebody manually hides the UndoBar, the onHide method won't be called, so no action can be performed.

*This is done this way to avoid multiple calls to a WS if the user changes its mind and clicks undo.