pull/43/head
kunfei 5 years ago
parent 07e9c4b3e6
commit 38c9ed602d
  1. 10
      app/src/main/java/io/legado/app/data/entities/SearchBook.kt

@ -66,7 +66,15 @@ data class SearchBook(
@Ignore
@IgnoredOnParcel
val origins: LinkedHashSet<String>? = null
var origins: LinkedHashSet<String>? = null
private set
fun addOrigin(origin: String) {
if (origins == null) {
origins = linkedSetOf()
}
origins?.add(origin)
}
fun toBook(): Book {
return Book(

Loading…
Cancel
Save