|
|
|
@ -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 |
|
|
|
|