nispok/snackbar

Snackbar doesn't survive a configuration change

Opened this issue · 2 comments

After rotating the device the Snackbar is gone. I'm using SnackbarDuration.LENGTH_INDEFINITE so it should stay.

I guess this is the intended behavior, because it's just a view. Does someone have a best practice for this problem?

The Activity should handle this for now.

To make it look as it the Snackbar is not reappearing, the SnackbarManager could have a method to show the existing Snackbar without the "on enter" animation. This would still need to be called from the Activity.

Not sure I understand what you meant to say. I am facing this issue now and searching a fix for it.