After implementing the new Snackbar
in a few of my applications, I am receiving the following error:
java.lang.ArrayIndexOutOfBoundsExceptio
One solution I found was to make sure it was not "swipe-able" by using findViewById(android.R.id.content)
. This solution basically "avoids" and prevents the error from happening.
Snackbar.make(findViewById(android.R.id.content), "Hello!", Snackbar.LENGTH_LONG);
Should be fixed in 23.2.1
: https://stackoverflow.com/a/36004008/950427