AndPermission
AndPermission copied to clipboard
android.view.WindowManager$BadTokenException
While using "com.yanzhenjie:permission:2.0.3", I got many "android.view.WindowManager$BadTokenException" crash reports. I'm using back to "com.yanzhenjie:permission:2.0.0-rc12", my question is which is the latest version that doesn't have BadTokenException crashes?
#651 希望作者能重视下这个问题,我们刚上play的应用,很多机器人测试app,造成崩溃率居高不下。
#651 希望作者能重视下这个问题,我们刚上play的应用,很多机器人测试app,造成崩溃率居高不下。
这个库设计很不好,建议换成别的!!!!! 关于简单的处理方法: 1.直接依赖这个库的源码,修改com.yanzhenjie.permission.task.TaskExecutor类,将mDialog 相关的代码进行异常捕捉处理 2.如果不想依赖源码,用AOP方式对TaskExecutor类的构造函数、onPreExecute()和onPostExecute()方法织入异常捕捉代码