Skip to content

Commit

Permalink
Added default value to magisk subject
Browse files Browse the repository at this point in the history
  • Loading branch information
diareuse authored and topjohnwu committed Jul 20, 2019
1 parent 21ed759 commit 501b18f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 501b18f

Please sign in to comment.