diff --git a/app/src/main/java/io/legado/app/ui/book/changesource/ChangeBookSourceViewModel.kt b/app/src/main/java/io/legado/app/ui/book/changesource/ChangeBookSourceViewModel.kt index fdbc7e161..d15322ada 100644 --- a/app/src/main/java/io/legado/app/ui/book/changesource/ChangeBookSourceViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/changesource/ChangeBookSourceViewModel.kt @@ -223,24 +223,22 @@ open class ChangeBookSourceViewModel(application: Application) : BaseViewModel(a private fun getDbSearchBooks(): List { return if (screenKey.isEmpty()) { if (AppConfig.changeSourceCheckAuthor) { - appDb.searchBookDao.getChangeSourceSearch(name, author, AppConfig.searchGroup) + appDb.searchBookDao.getChangeSourceSearch( + name, author, AppConfig.searchGroup + ) } else { - appDb.searchBookDao.getChangeSourceSearch(name, "", AppConfig.searchGroup) + appDb.searchBookDao.getChangeSourceSearch( + name, "", AppConfig.searchGroup + ) } } else { if (AppConfig.changeSourceCheckAuthor) { appDb.searchBookDao.getChangeSourceSearch( - name, - author, - screenKey, - AppConfig.searchGroup + name, author, screenKey, AppConfig.searchGroup ) } else { appDb.searchBookDao.getChangeSourceSearch( - name, - "", - screenKey, - AppConfig.searchGroup + name, "", screenKey, AppConfig.searchGroup ) } }