Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenlu committed Oct 9, 2023
1 parent 3414080 commit 7e45a6e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -600,20 +600,19 @@ private void checkPermissionResult(List<String> permissions) {
}
}
}
String scenarioKey = getCurrentScenarioKey();
if (mSimpleCallback != null) {
if (flag) {
mSimpleCallback.onGranted();
} else {
mSimpleCallback.onDenied();
if (goSetting) {
String scenarioKey = getCurrentScenarioKey();
if (isAutoRequest && !isFirstRequest(scenarioKey)) {
//当前场景非用户手动触发请求,并且非第一次请求
ToastUtils.showShort(MessageFormat.format("您已拒绝授权我们申请的{0}权限", getDeniedPermissionName()));
return;
}

setRequestTime(scenarioKey);
if (!isShowing) {
showOpenAppSettingDialog(ActivityUtils.getTopActivity(), "温馨提示", generateGoSettingMsg(), cancelTextColor, confirmTextColor, "取消", "去设置", onGoSettingUIListener);
}
Expand All @@ -625,6 +624,7 @@ private void checkPermissionResult(List<String> permissions) {
}
}
}
setRequestTime(scenarioKey);
}

private String generateGoSettingMsg() {
Expand Down

0 comments on commit 7e45a6e

Please sign in to comment.