diff --git a/app/src/main/java/io/legado/app/data/entities/BookChapter.kt b/app/src/main/java/io/legado/app/data/entities/BookChapter.kt index 34a822f3f..4c120c0c9 100644 --- a/app/src/main/java/io/legado/app/data/entities/BookChapter.kt +++ b/app/src/main/java/io/legado/app/data/entities/BookChapter.kt @@ -50,7 +50,12 @@ data class BookChapter( override fun hashCode() = url.hashCode() - override fun equals(other: Any?) = if (other is BookChapter) other.url == url else false + override fun equals(other: Any?): Boolean { + if (other is BookChapter) { + return other.url == url + } + return false + } }