mirror of
https://github.com/fankes/ColorOSNotifyIcon.git
synced 2025-09-06 10:45:49 +08:00
增加模块自动检查更新功能
This commit is contained in:
@@ -97,7 +97,7 @@ object GithubReleaseTool {
|
|||||||
override fun onFailure(call: Call, e: IOException) {
|
override fun onFailure(call: Call, e: IOException) {
|
||||||
(context as? Activity?)?.runOnUiThread {
|
(context as? Activity?)?.runOnUiThread {
|
||||||
context.showDialog {
|
context.showDialog {
|
||||||
title = "网络连接失败"
|
title = "网络不可用"
|
||||||
msg = "模块的联网权限可能已被禁用,请开启联网权限以定期检查更新。"
|
msg = "模块的联网权限可能已被禁用,请开启联网权限以定期检查更新。"
|
||||||
confirmButton(text = "去开启") { context.openSelfSetting() }
|
confirmButton(text = "去开启") { context.openSelfSetting() }
|
||||||
cancelButton()
|
cancelButton()
|
||||||
|
Reference in New Issue
Block a user