Make core package more self contained

This commit is contained in:
topjohnwu
2023-04-05 23:04:33 -07:00
parent daf8653c38
commit 69b66ef637
45 changed files with 129 additions and 146 deletions
@@ -13,8 +13,8 @@ import com.topjohnwu.magisk.R
import com.topjohnwu.magisk.core.di.AppContext
import com.topjohnwu.magisk.core.download.DownloadService
import com.topjohnwu.magisk.core.download.Subject
import com.topjohnwu.magisk.ktx.getBitmap
import com.topjohnwu.magisk.ktx.selfLaunchIntent
import com.topjohnwu.magisk.core.ktx.getBitmap
import com.topjohnwu.magisk.core.ktx.selfLaunchIntent
import java.util.concurrent.atomic.AtomicInteger
@Suppress("DEPRECATION")
@@ -13,8 +13,7 @@ import androidx.core.graphics.drawable.IconCompat
import com.topjohnwu.magisk.R
import com.topjohnwu.magisk.core.Const
import com.topjohnwu.magisk.core.Info
import com.topjohnwu.magisk.ktx.getBitmap
import com.topjohnwu.magisk.utils.Utils
import com.topjohnwu.magisk.core.ktx.getBitmap
object Shortcuts {
@@ -51,7 +50,7 @@ object Shortcuts {
val shortCuts = mutableListOf<ShortcutInfo>()
if (Utils.showSuperUser()) {
if (Info.showSuperUser) {
shortCuts.add(
ShortcutInfo.Builder(context, Const.Nav.SUPERUSER)
.setShortLabel(context.getString(R.string.superuser))