File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -383,9 +383,10 @@ AppDialog.showDialog(appDialogConfig)
383383
384384private val requestPermissionLauncher = registerForActivityResult(ActivityResultContracts .RequestPermission ()) {
385385 if (it) {
386- // TODO 开始下载更新
386+ // TODO 授权通过; 开始下载更新
387387 AppUpdater (this , apkUrl).start()
388388 } else {
389+ // TODO 授权申请被拒绝
389390 showToast(" Notification permission denied!" )
390391 }
391392}
@@ -398,7 +399,7 @@ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
398399 val permission = Manifest .permission.POST_NOTIFICATIONS
399400 // 检测是否有 android.permission.POST_NOTIFICATIONS 权限
400401 if (PermissionUtils .checkPermission(this , permission)) {
401- // TODO 开始下载更新
402+ // TODO 已授权; 开始下载更新
402403 AppUpdater (this , apkUrl).start()
403404 } else {
404405 // 如果没有发送通知权限,则申请授权
You can’t perform that action at this time.
0 commit comments