Ensure memo is correctly passed around when transforming classes
This commit is contained in:
@@ -36,6 +36,7 @@ interface SChapter : Serializable {
|
||||
date_upload = other.date_upload
|
||||
chapter_number = other.chapter_number
|
||||
scanlator = other.scanlator
|
||||
memo = other.memo
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
package eu.kanade.tachiyomi.source.model
|
||||
|
||||
import kotlinx.serialization.json.JsonObject
|
||||
import mihon.core.common.extensions.EMPTY
|
||||
|
||||
class SChapterImpl : SChapter {
|
||||
|
||||
@@ -16,5 +17,5 @@ class SChapterImpl : SChapter {
|
||||
|
||||
override var date_upload: Long = 0
|
||||
|
||||
override var memo: JsonObject = JsonObject(emptyMap())
|
||||
override var memo: JsonObject = JsonObject.EMPTY
|
||||
}
|
||||
|
||||
@@ -56,6 +56,7 @@ interface SManga : Serializable {
|
||||
it.thumbnail_url = thumbnail_url
|
||||
it.update_strategy = update_strategy
|
||||
it.initialized = initialized
|
||||
it.memo = memo
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
package eu.kanade.tachiyomi.source.model
|
||||
|
||||
import kotlinx.serialization.json.JsonObject
|
||||
import mihon.core.common.extensions.EMPTY
|
||||
|
||||
class SMangaImpl : SManga {
|
||||
|
||||
@@ -26,5 +27,5 @@ class SMangaImpl : SManga {
|
||||
|
||||
override var initialized: Boolean = false
|
||||
|
||||
override var memo: JsonObject = JsonObject(emptyMap())
|
||||
override var memo: JsonObject = JsonObject.EMPTY
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user