Fix update from notification will fail

This commit is contained in:
vvb2060 2021-11-25 14:40:48 +08:00 committed by John Wu
parent 7bd3e768db
commit 49dfa2c3a0

View File

@ -24,6 +24,7 @@ class JobService : BaseJobService() {
val coroutineScope = CoroutineScope(Dispatchers.IO + job) val coroutineScope = CoroutineScope(Dispatchers.IO + job)
coroutineScope.launch { coroutineScope.launch {
svc.fetchUpdate()?.run { svc.fetchUpdate()?.run {
Info.remote = this
if (Info.env.isActive && BuildConfig.VERSION_CODE < magisk.versionCode) if (Info.env.isActive && BuildConfig.VERSION_CODE < magisk.versionCode)
Notifications.managerUpdate(this@JobService) Notifications.managerUpdate(this@JobService)
} }