Fix broken downloaded chapter (#7460)

This commit is contained in:
Ivan Iskandar 2022-07-07 09:13:49 +07:00 committed by GitHub
parent 7d3fe0ed43
commit 325a5e37aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,33 +57,6 @@ open class Page(
statusCallback = f 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 { companion object {
const val QUEUE = 0 const val QUEUE = 0
const val LOAD_PAGE = 1 const val LOAD_PAGE = 1