mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +00:00
Show magisk update notification only when magisk is installed
This commit is contained in:
parent
c881fd4964
commit
fc6ef7dd57
@ -21,7 +21,7 @@ class UpdateCheckService(context: Context, workerParams: WorkerParameters)
|
||||
magiskRepo.fetchUpdate().blockingGet()
|
||||
if (BuildConfig.VERSION_CODE < Info.remote.app.versionCode)
|
||||
Notifications.managerUpdate(applicationContext)
|
||||
else if (Info.env.magiskVersionCode < Info.remote.magisk.versionCode)
|
||||
else if (Info.env.isActive && Info.env.magiskVersionCode < Info.remote.magisk.versionCode)
|
||||
Notifications.magiskUpdate(applicationContext)
|
||||
Result.success()
|
||||
}.getOrElse {
|
||||
|
Loading…
Reference in New Issue
Block a user