ArrayIndexOutOfBoundsException while dismissing Snackbar/ViewDragHelper

▼魔方 西西 提交于 2019-11-29 06:36:02
Jared Burrows

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!