pull/1890/head
kunfei 3 years ago
parent 69b91657b8
commit 1a77c722d1
  1. 3
      app/src/main/java/io/legado/app/data/entities/BookSource.kt

@ -13,6 +13,7 @@ import kotlinx.parcelize.Parcelize
import splitties.init.appCtx
import java.io.InputStream
@Suppress("unused")
@Parcelize
@TypeConverters(BookSource.Converters::class)
@Entity(
@ -161,7 +162,7 @@ data class BookSource(
fun removeGroup(groups: String): BookSource {
bookSourceGroup?.splitNotBlank(AppPattern.splitGroupRegex)?.toHashSet()?.let {
it.removeAll(groups.splitNotBlank(AppPattern.splitGroupRegex))
it.removeAll(groups.splitNotBlank(AppPattern.splitGroupRegex).toSet())
bookSourceGroup = TextUtils.join(",", it)
}
return this

Loading…
Cancel
Save