Skip to content

Commit 8907a55

Browse files
committed
Update README
1 parent b05990f commit 8907a55

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,6 @@ val appDialogConfig = AppDialogConfig(context)
327327
.setShowNotification(true) // 设置是否显示通知
328328
.setShowPercentage(true) // 设置是否显示百分比(通知更新进度)
329329
.setInstallApk(true) // 下载完成后是否自动请求安装APK
330-
.setHttpManager(getInstance()) // 使用OkHttp的实现进行下载(需依赖okhttp)
331330
.setDownloadListener(object : SimpleDownloadListener() { // 下载监听
332331
override fun onStart(url: String) {
333332
// 开始下载
@@ -386,7 +385,7 @@ private val requestPermissionLauncher = registerForActivityResult(ActivityResult
386385
// TODO 授权通过;开始下载更新
387386
AppUpdater(this, apkUrl).start()
388387
} else {
389-
// TODO 授权申请被拒绝
388+
// TODO 授权被拒绝
390389
showToast("Notification permission denied!")
391390
}
392391
}

0 commit comments

Comments
 (0)