pull/433/head
gedoor 4 years ago
parent 9466956ae0
commit 49508c2204
  1. 14
      app/src/main/java/io/legado/app/data/entities/BookGroup.kt

@ -28,4 +28,18 @@ data class BookGroup(
}
}
override fun hashCode(): Int {
return groupId.hashCode()
}
override fun equals(other: Any?): Boolean {
if (other is BookGroup) {
return other.groupId == groupId
&& other.groupName == groupName
&& other.order == order
&& other.show == show
}
return false
}
}
Loading…
Cancel
Save