pull/394/head
AndyBernie 4 years ago
parent 273d465e08
commit be931db1a0
  1. 1
      app/src/main/assets/updateLog.md
  2. 4
      app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceViewModel.kt

@ -5,6 +5,7 @@
**2020/09/21** **2020/09/21**
* 修复规则解析bug * 修复规则解析bug
* 换源时无最新章节信息时可加载详情页来获取(默认关闭)
**2020/09/20** **2020/09/20**
* 优化正文搜索 * 优化正文搜索

@ -121,8 +121,10 @@ class ChangeSourceViewModel(application: Application) : BaseViewModel(applicatio
it.forEach { searchBook -> it.forEach { searchBook ->
if (searchBook.name == name && searchBook.author == author) { if (searchBook.name == name && searchBook.author == author) {
if (searchBook.latestChapterTitle.isNullOrEmpty()) { if (searchBook.latestChapterTitle.isNullOrEmpty()) {
if (context.getPrefBoolean(PreferKey.changeSourceLoadInfo)) { if (context.getPrefBoolean(PreferKey.changeSourceLoadInfo) || context.getPrefBoolean(PreferKey.changeSourceLoadToc)) {
loadBookInfo(searchBook.toBook()) loadBookInfo(searchBook.toBook())
} else {
searchFinish(searchBook)
} }
} else { } else {
searchFinish(searchBook) searchFinish(searchBook)

Loading…
Cancel
Save