Remove unnecessary App usage

This commit is contained in:
topjohnwu
2019-08-05 00:21:38 -07:00
parent 010e4de4e1
commit 223913c30a
3 changed files with 9 additions and 15 deletions
@@ -1,12 +1,11 @@
package com.topjohnwu.magisk.data.repository
import android.content.pm.PackageManager
import com.topjohnwu.magisk.App
import com.topjohnwu.magisk.Config
import com.topjohnwu.magisk.Info
import com.topjohnwu.magisk.data.database.base.su
import com.topjohnwu.magisk.data.network.GithubRawServices
import com.topjohnwu.magisk.extensions.inject
import com.topjohnwu.magisk.extensions.packageName
import com.topjohnwu.magisk.extensions.toSingle
import com.topjohnwu.magisk.model.entity.HideAppInfo
import com.topjohnwu.magisk.model.entity.HideTarget
@@ -63,8 +62,8 @@ class MagiskRepository(
private val Boolean.state get() = if (this) "add" else "rm"
companion object {
private val blacklist = listOf(
let { val app: App by inject(); app }.packageName,
private val blacklist by lazy { listOf(
packageName,
"android",
"com.android.chrome",
"com.chrome.beta",
@@ -72,7 +71,7 @@ class MagiskRepository(
"com.chrome.canary",
"com.android.webview",
"com.google.android.webview"
)
) }
}
}