diff --git a/app/src/main/java/com/topjohnwu/magisk/core/download/Action.kt b/app/src/main/java/com/topjohnwu/magisk/core/download/Action.kt index 6d3a4d0d9..681ffd1d1 100644 --- a/app/src/main/java/com/topjohnwu/magisk/core/download/Action.kt +++ b/app/src/main/java/com/topjohnwu/magisk/core/download/Action.kt @@ -16,15 +16,6 @@ sealed class Action : Parcelable { } - sealed class APK : Action() { - - @Parcelize - object Upgrade : APK() - - @Parcelize - object Restore : APK() - } - @Parcelize object Download : Action() diff --git a/app/src/main/java/com/topjohnwu/magisk/core/download/DownloadService.kt b/app/src/main/java/com/topjohnwu/magisk/core/download/DownloadService.kt index 67708b47e..06f9e9b54 100644 --- a/app/src/main/java/com/topjohnwu/magisk/core/download/DownloadService.kt +++ b/app/src/main/java/com/topjohnwu/magisk/core/download/DownloadService.kt @@ -73,10 +73,7 @@ open class DownloadService : BaseDownloader() { } private fun Notification.Builder.setIntent(subject: Manager) - = when (subject.action) { - APK.Upgrade -> setContentIntent(APKInstall.installIntent(context, subject.file.toFile())) - else -> setContentIntent(Intent()) - } + = setContentIntent(APKInstall.installIntent(context, subject.file.toFile())) private fun Notification.Builder.setContentIntent(intent: Intent) = setContentIntent(