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()
|
magiskRepo.fetchUpdate().blockingGet()
|
||||||
if (BuildConfig.VERSION_CODE < Info.remote.app.versionCode)
|
if (BuildConfig.VERSION_CODE < Info.remote.app.versionCode)
|
||||||
Notifications.managerUpdate(applicationContext)
|
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)
|
Notifications.magiskUpdate(applicationContext)
|
||||||
Result.success()
|
Result.success()
|
||||||
}.getOrElse {
|
}.getOrElse {
|
||||||
|
Loading…
Reference in New Issue
Block a user