pull/94/head
kunfei 5 years ago
parent 78988d72e8
commit 11182403f5
  1. 15
      app/src/main/java/io/legado/app/data/entities/ReplaceRule.kt

@ -24,4 +24,17 @@ data class ReplaceRule(
var isRegex: Boolean = true,
@ColumnInfo(name = "sortOrder")
var order: Int = 0
) : Parcelable
) : Parcelable {
override fun equals(other: Any?): Boolean {
if (other is ReplaceRule) {
return other.id == id
}
return super.equals(other)
}
override fun hashCode(): Int {
return id.hashCode()
}
}
Loading…
Cancel
Save