Commit 4e0a3f5e authored by topjohnwu's avatar topjohnwu

Fix compile errors

parent d7c33f64
......@@ -16,15 +16,6 @@ sealed class Action : Parcelable {
}
sealed class APK : Action() {
@Parcelize
object Upgrade : APK()
@Parcelize
object Restore : APK()
}
@Parcelize
object Download : Action()
......
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment