From 501b18f986cd40c65007be05be07ca449204347d Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Wed, 10 Jul 2019 18:44:32 +0200 Subject: [PATCH] Added default value to magisk subject --- .../magisk/model/entity/internal/DownloadSubject.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/model/entity/internal/DownloadSubject.kt b/app/src/main/java/com/topjohnwu/magisk/model/entity/internal/DownloadSubject.kt index a6ea53fc5..7d6ee7842 100644 --- a/app/src/main/java/com/topjohnwu/magisk/model/entity/internal/DownloadSubject.kt +++ b/app/src/main/java/com/topjohnwu/magisk/model/entity/internal/DownloadSubject.kt @@ -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