mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 13:35:27 +00:00
Fix update from notification will fail
This commit is contained in:
parent
7bd3e768db
commit
49dfa2c3a0
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user