soarcn/UndoBar

unable to show UndoBar again

phileo opened this issue · 2 comments

I tried to call UndoBarController.show() inside of onUndo() callback, but it doesn't seem to show the UndoBar again.
Any ideas as to why this might be happening ?

my use case is exactly like GMail: "No connection | retry"

Well, there is always only one undobar view in current activity. when onUndo is triggering and undobar is hiding, show() would not correctly work as you wish.

And back to your case. There should always some delay between onUndo() and show(). for example some delay using handler postdelay.

And if you can check the sample project (Retry style), that is a better way to do this kind of thing by using loader.

Any questions, welcome to leave your messages.