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