Commit fc6ef7dd authored by vvb2060's avatar vvb2060 Committed by John Wu

Show magisk update notification only when magisk is installed

parent c881fd49
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment