@ -57,6 +57,17 @@ data class Book(
return isLocalBook() && originName.endsWith(".txt", true)
}
override fun equals(other: Any?): Boolean {
if (other is Book) {
return other.bookUrl == bookUrl
return false
override fun hashCode(): Int {
return bookUrl.hashCode()
@Ignore
@IgnoredOnParcel
override var variableMap: HashMap<String, String>? = null
@ -11,7 +11,7 @@ class ArrangeBookViewModel(application: Application) : BaseViewModel(application
fun deleteBook(vararg book: Book) {
execute {
App.db.bookDao().delete()
App.db.bookDao().delete(*book)