Address some build warnings
(cherry picked from commit 2d7650537db907a4129f4a07db15950339b319e9) # Conflicts: # README.md # app/src/main/java/eu/kanade/presentation/category/components/CategoryDialogs.kt # source-api/src/commonMain/kotlin/eu/kanade/tachiyomi/source/model/SManga.kt
This commit is contained in:
@@ -38,42 +38,6 @@ interface SManga : Serializable {
|
||||
val originalStatus: Int
|
||||
// SY <--
|
||||
|
||||
fun copyFrom(other: SManga) {
|
||||
// EXH -->
|
||||
if (other.title.isNotBlank() && originalTitle != other.title) {
|
||||
title = other.originalTitle
|
||||
}
|
||||
// EXH <--
|
||||
|
||||
if (other.author != null) {
|
||||
author = /* SY --> */ other.originalAuthor // SY <--
|
||||
}
|
||||
|
||||
if (other.artist != null) {
|
||||
artist = /* SY --> */ other.originalArtist // SY <--
|
||||
}
|
||||
|
||||
if (other.description != null) {
|
||||
description = /* SY --> */ other.originalDescription // SY <--
|
||||
}
|
||||
|
||||
if (other.genre != null) {
|
||||
genre = /* SY --> */ other.originalGenre // SY <--
|
||||
}
|
||||
|
||||
if (other.thumbnail_url != null) {
|
||||
thumbnail_url = other.thumbnail_url
|
||||
}
|
||||
|
||||
status = other.status
|
||||
|
||||
update_strategy = other.update_strategy
|
||||
|
||||
if (!initialized) {
|
||||
initialized = other.initialized
|
||||
}
|
||||
}
|
||||
|
||||
fun copy() = create().also {
|
||||
it.url = url
|
||||
// SY -->
|
||||
|
||||
@@ -6,6 +6,7 @@ package eu.kanade.tachiyomi.source.model
|
||||
*
|
||||
* @since extensions-lib 1.4
|
||||
*/
|
||||
@Suppress("UNUSED")
|
||||
enum class UpdateStrategy {
|
||||
/**
|
||||
* Series marked as always update will be included in the library
|
||||
|
||||
Reference in New Issue
Block a user