From 325a5e37aac77ab305d21ecfe5ce63705a243047 Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Thu, 7 Jul 2022 09:13:49 +0700 Subject: [PATCH] Fix broken downloaded chapter (#7460) --- .../eu/kanade/tachiyomi/source/model/Page.kt | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/source/model/Page.kt b/app/src/main/java/eu/kanade/tachiyomi/source/model/Page.kt index 0f4d204a6..c6b46dde2 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/source/model/Page.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/source/model/Page.kt @@ -57,33 +57,6 @@ open class Page( statusCallback = f } - override fun equals(other: Any?): Boolean { - if (this === other) return true - if (other !is Page) return false - - if (index != other.index) return false - if (url != other.url) return false - if (imageUrl != other.imageUrl) return false - if (number != other.number) return false - if (status != other.status) return false - if (progress != other.progress) return false - if (statusSubject != other.statusSubject) return false - if (statusCallback != other.statusCallback) return false - - return true - } - - override fun hashCode(): Int { - var result = index - result = 31 * result + url.hashCode() - result = 31 * result + (imageUrl?.hashCode() ?: 0) - result = 31 * result + status - result = 31 * result + progress - result = 31 * result + (statusSubject?.hashCode() ?: 0) - result = 31 * result + (statusCallback?.hashCode() ?: 0) - return result - } - companion object { const val QUEUE = 0 const val LOAD_PAGE = 1