1
mirror of https://github.com/topjohnwu/Magisk synced 2024-11-13 20:54:12 +01:00

Fix compile errors

This commit is contained in:
topjohnwu 2020-10-17 04:28:20 -07:00
parent d7c33f647d
commit 4e0a3f5e72
2 changed files with 1 additions and 13 deletions

View File

@ -16,15 +16,6 @@ sealed class Action : Parcelable {
}
sealed class APK : Action() {
@Parcelize
object Upgrade : APK()
@Parcelize
object Restore : APK()
}
@Parcelize
object Download : Action()

View File

@ -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(