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