mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-26 07:07:25 +00:00
Fix compile errors
This commit is contained in:
parent
d7c33f647d
commit
4e0a3f5e72
@ -16,15 +16,6 @@ sealed class Action : Parcelable {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sealed class APK : Action() {
|
|
||||||
|
|
||||||
@Parcelize
|
|
||||||
object Upgrade : APK()
|
|
||||||
|
|
||||||
@Parcelize
|
|
||||||
object Restore : APK()
|
|
||||||
}
|
|
||||||
|
|
||||||
@Parcelize
|
@Parcelize
|
||||||
object Download : Action()
|
object Download : Action()
|
||||||
|
|
||||||
|
@ -73,10 +73,7 @@ open class DownloadService : BaseDownloader() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun Notification.Builder.setIntent(subject: Manager)
|
private fun Notification.Builder.setIntent(subject: Manager)
|
||||||
= when (subject.action) {
|
= setContentIntent(APKInstall.installIntent(context, subject.file.toFile()))
|
||||||
APK.Upgrade -> setContentIntent(APKInstall.installIntent(context, subject.file.toFile()))
|
|
||||||
else -> setContentIntent(Intent())
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun Notification.Builder.setContentIntent(intent: Intent) =
|
private fun Notification.Builder.setContentIntent(intent: Intent) =
|
||||||
setContentIntent(
|
setContentIntent(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user