Added default value to magisk subject

This commit is contained in:
Viktor De Pasquale 2019-07-10 18:44:32 +02:00 committed by John Wu
parent 21ed759e53
commit 501b18f986

View File

@ -1,6 +1,7 @@
package com.topjohnwu.magisk.model.entity.internal
import android.os.Parcelable
import com.topjohnwu.magisk.Info
import com.topjohnwu.magisk.model.entity.MagiskJson
import kotlinx.android.parcel.Parcelize
import com.topjohnwu.magisk.model.entity.Module as MagiskModule
@ -23,8 +24,8 @@ sealed class DownloadSubject : Parcelable {
@Parcelize
data class Magisk(
val magisk: MagiskJson,
val configuration: Configuration
val configuration: Configuration,
val magisk: MagiskJson = Info.remote.magisk
) : DownloadSubject() {
override val url: String get() = magisk.link