diff --git a/feature/details/presentation/src/commonMain/kotlin/zed/rainxch/details/presentation/DetailsViewModel.kt b/feature/details/presentation/src/commonMain/kotlin/zed/rainxch/details/presentation/DetailsViewModel.kt index 9dc5f55a2..c3eeecee7 100644 --- a/feature/details/presentation/src/commonMain/kotlin/zed/rainxch/details/presentation/DetailsViewModel.kt +++ b/feature/details/presentation/src/commonMain/kotlin/zed/rainxch/details/presentation/DetailsViewModel.kt @@ -1489,11 +1489,11 @@ class DetailsViewModel( } catch (e: Exception) { InstallerType.DEFAULT } - val policy = - when (installerType) { - InstallerType.SHIZUKU -> InstallPolicy.AlwaysInstall - InstallerType.DEFAULT -> InstallPolicy.InstallWhileForeground + when { + platform != Platform.ANDROID -> InstallPolicy.AlwaysInstall + installerType == InstallerType.SHIZUKU -> InstallPolicy.AlwaysInstall + else -> InstallPolicy.InstallWhileForeground } downloadOrchestrator.enqueue(