Skip to content

Commit

Permalink
Updated object usage for module subjects
Browse files Browse the repository at this point in the history
  • Loading branch information
diareuse authored and topjohnwu committed Jul 20, 2019
1 parent 22e7364 commit 224fff8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package com.topjohnwu.magisk.model.entity.internal
import android.os.Parcelable
import com.topjohnwu.magisk.Info
import com.topjohnwu.magisk.model.entity.MagiskJson
import com.topjohnwu.magisk.model.entity.Repo
import kotlinx.android.parcel.Parcelize
import com.topjohnwu.magisk.model.entity.Module as MagiskModule

sealed class DownloadSubject : Parcelable {

Expand All @@ -13,11 +13,11 @@ sealed class DownloadSubject : Parcelable {

@Parcelize
data class Module(
val module: MagiskModule,
val module: Repo,
val configuration: Configuration
) : 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"

}
Expand Down

0 comments on commit 224fff8

Please sign in to comment.