In my snippet I do:
mActionHelper.showUndoBar(getView(), itemsList, lastPositionSelected);
The showUndoBar () method simply creates a Snackbar with the form:
Snackbar.make(view, message, Snackbar.LENGTH_LONG);
However, somehow, the view is wrong, since Snackbar does not respond to reset-drop gestures and only fills the lower left quadrant in split-view mode. Most Snackbar examples demonstrate calling the Snackbar from an Activity, so I believe that the problem that I am using the snippet is the problem. How can I get and pass the correct view for Snackbar to display correctly?
source share