Fix error patching boot.img

Signed-off-by: Shaka Huang <shakalaca@gmail.com>
This commit is contained in:
Shaka Huang 2020-03-02 00:37:07 +08:00 committed by John Wu
parent db9a4b31f9
commit 9582379e1b

View File

@ -97,7 +97,7 @@ sealed class DownloadSubject : Parcelable {
operator fun invoke(configuration: Configuration) = when (configuration) { operator fun invoke(configuration: Configuration) = when (configuration) {
Configuration.Download -> Download() Configuration.Download -> Download()
Configuration.Uninstall -> Uninstall() Configuration.Uninstall -> Uninstall()
Configuration.EnvFix, is Configuration.Flash -> DownloadInternal(configuration) Configuration.EnvFix, is Configuration.Flash, is Configuration.Patch -> DownloadInternal(configuration)
else -> throw IllegalArgumentException() else -> throw IllegalArgumentException()
} }
} }