优化
This commit is contained in:
@@ -61,16 +61,20 @@ object SourceHelp {
|
||||
}
|
||||
|
||||
fun deleteBookSourceParts(sources: List<BookSourcePart>) {
|
||||
appDb.runInTransaction {
|
||||
sources.forEach {
|
||||
deleteBookSourceInternal(it.bookSourceUrl)
|
||||
}
|
||||
}
|
||||
AppCacheManager.clearSourceVariables()
|
||||
}
|
||||
|
||||
fun deleteBookSources(sources: List<BookSource>) {
|
||||
appDb.runInTransaction {
|
||||
sources.forEach {
|
||||
deleteBookSourceInternal(it.bookSourceUrl)
|
||||
}
|
||||
}
|
||||
AppCacheManager.clearSourceVariables()
|
||||
}
|
||||
|
||||
@@ -86,9 +90,11 @@ object SourceHelp {
|
||||
}
|
||||
|
||||
fun deleteRssSources(sources: List<RssSource>) {
|
||||
appDb.runInTransaction {
|
||||
sources.forEach {
|
||||
deleteRssSourceInternal(it.sourceUrl)
|
||||
}
|
||||
}
|
||||
AppCacheManager.clearSourceVariables()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user