pull/32/head
kunfei 5 years ago
parent 507ac06777
commit 4e0efb4e45
  1. 13
      app/src/main/java/io/legado/app/data/entities/SearchBook.kt

@ -32,6 +32,19 @@ data class SearchBook(
var originOrder: Int = 0 var originOrder: Int = 0
) : Parcelable, BaseBook { ) : Parcelable, BaseBook {
override fun equals(other: Any?): Boolean {
if (other is SearchBook) {
if (other.bookUrl == bookUrl) {
return true
}
}
return false
}
override fun hashCode(): Int {
return bookUrl.hashCode()
}
@IgnoredOnParcel @IgnoredOnParcel
@Ignore @Ignore
override var variableMap: HashMap<String, String>? = null override var variableMap: HashMap<String, String>? = null

Loading…
Cancel
Save