Commit 224fff89 authored by Viktor De Pasquale's avatar Viktor De Pasquale Committed by John Wu

Updated object usage for module subjects

parent 22e73644
...@@ -3,8 +3,8 @@ package com.topjohnwu.magisk.model.entity.internal ...@@ -3,8 +3,8 @@ package com.topjohnwu.magisk.model.entity.internal
import android.os.Parcelable import android.os.Parcelable
import com.topjohnwu.magisk.Info import com.topjohnwu.magisk.Info
import com.topjohnwu.magisk.model.entity.MagiskJson import com.topjohnwu.magisk.model.entity.MagiskJson
import com.topjohnwu.magisk.model.entity.Repo
import kotlinx.android.parcel.Parcelize import kotlinx.android.parcel.Parcelize
import com.topjohnwu.magisk.model.entity.Module as MagiskModule
sealed class DownloadSubject : Parcelable { sealed class DownloadSubject : Parcelable {
...@@ -13,11 +13,11 @@ sealed class DownloadSubject : Parcelable { ...@@ -13,11 +13,11 @@ sealed class DownloadSubject : Parcelable {
@Parcelize @Parcelize
data class Module( data class Module(
val module: MagiskModule, val module: Repo,
val configuration: Configuration val configuration: Configuration
) : DownloadSubject() { ) : DownloadSubject() {
override val url: String get() = module.path override val url: String get() = module.zipUrl
override val fileName: String get() = "${module.name}-v${module.version}(${module.versionCode}).zip" override val fileName: String get() = "${module.name}-v${module.version}(${module.versionCode}).zip"
} }
......
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