Skip to content

Commit

Permalink
Update ExtensionInstaller.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jays2Kings committed Oct 25, 2023
1 parent 1ddcc77 commit 7267bb8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 7267bb8

Please sign in to comment.