From 7792765e1bfa0e76ea0c08b51fe1a59f7c1719b5 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 20 Oct 2020 14:11:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/data/entities/BookChapter.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 + } }