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