Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

权限申请回调 #16

Closed
hzl123456 opened this issue Jan 11, 2018 · 1 comment
Closed

权限申请回调 #16

hzl123456 opened this issue Jan 11, 2018 · 1 comment

Comments

@hzl123456
Copy link

@OverRide
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == 756232212) {
if (PermissionUtil.hasPermissionOnActivityResult(this)) {
mPermissionListener.onSuccess();
} else {
//这里应该是 mPermissionListener.onFail();
mPermissionListener.onSuccess();
}
}
finish();
}
代码中申请悬浮窗权限的回调错误,导致的直接问题是在申请悬浮窗权限的时候,用户选择了拒绝。应用崩溃

@yhaolpz
Copy link
Owner

yhaolpz commented Jan 11, 2018

@hzl123456 非常感谢你!

@yhaolpz yhaolpz closed this as completed May 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants