From de19f42487bc80d95a1f986f00e1e152f19517ff Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 12 Jan 2021 18:05:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/book/changesource/ChangeSourceViewModel.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceViewModel.kt b/app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceViewModel.kt index 143d706ba..937370db9 100644 --- a/app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceViewModel.kt @@ -100,6 +100,8 @@ class ChangeSourceViewModel(application: Application) : BaseViewModel(applicatio private fun startSearch() { execute { App.db.searchBookDao.clear(name, author) + searchBooks.clear() + upAdapter() bookSourceList.clear() if (searchGroup.isBlank()) { bookSourceList.addAll(App.db.bookSourceDao.allEnabled)