mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Update ExtensionInstaller.kt
This commit is contained in:
parent
1ddcc77449
commit
7267bb8f7b
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ internal class ExtensionInstaller(private val context: Context) {
|
|||
fun installApk(downloadId: Long, uri: Uri) {
|
||||
val pkgName = activeDownloads.entries.find { it.value == downloadId }?.key
|
||||
val useActivity =
|
||||
pkgName?.let { !ExtensionLoader.isExtensionInstalledByApp(context, pkgName) } ?: true ||
|
||||
(pkgName?.let { !ExtensionLoader.isExtensionInstalledByApp(context, pkgName) } ?: true) ||
|
||||
Build.VERSION.SDK_INT < Build.VERSION_CODES.S
|
||||
val prefs: PreferencesHelper = Injekt.get()
|
||||
when (prefs.extensionInstaller().get()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue