You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.
disposable = rxPermissions.requestEach(permission.CALL_PHONE, permission.CAMERA)
.subscribe(new Consumer() {
@OverRide
public void accept(Permission permission) throws Throwable {
if (permission.granted) {
Log.e(permission.name, "granted");
} else if (permission.shouldShowRequestPermissionRationale) {
Log.e(permission.name, "shouldShowRequestPermissionRationale");
} else {
Log.e(permission.name, "denied");
}
}
});
权限对话框是可取消的,点击dialog外侧取消后,走的也是else分支。这时候去过else里面写的是引导用户去设置页的逻辑,就不大合适。希望能够区分开:不再询问的禁止 和 点击dialog外侧取消。
The text was updated successfully, but these errors were encountered: