最新的 2.0.3 版本的权限请求弹框需要几秒钟才能弹出。
The permission request dialog in the latest 2.0.3 version takes several seconds to pop up. I saw that there were issues that solved this problem, but why did I write it like this in the demo: AndPermission.with(this) .runtime() .permission(Permission.Group.STORAGE) .onGranted(new Action<List<String>>() { @Override public void onAction(List<String> data) { writeApkForInstallPackage() } }) .onDenied(new Action<List<String>>() { @Override public void onAction(List<String> data) { toast(R.string.message_install_failed) } }) .start(); The permission dialog is still very slow. It is easy to cause users to think that clicking has no response, and then exit the current interface. At this time, the dialog will appear, and whether clicking agree or refuse, a crash will occur. Have you encountered this? How did you solve it? I looked at the demo and it was very fast. I looked at it for a long time, but I still couldn't see any difference. Thank you.
内容来源: yanzhenjie/AndPermission