From 4e0a3f5e7211a03e8fb961ed486bd368795db156 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sat, 17 Oct 2020 04:28:20 -0700 Subject: [PATCH] Fix compile errors --- .../java/com/topjohnwu/magisk/core/download/Action.kt | 9 --------- .../topjohnwu/magisk/core/download/DownloadService.kt | 5 +---- 2 files changed, 1 insertion(+), 13 deletions(-) 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(