diff --git a/app/src/main/java/io/legado/app/ui/booksource/BookSourceActivity.kt b/app/src/main/java/io/legado/app/ui/booksource/BookSourceActivity.kt index cd824cf00..fd849ad63 100644 --- a/app/src/main/java/io/legado/app/ui/booksource/BookSourceActivity.kt +++ b/app/src/main/java/io/legado/app/ui/booksource/BookSourceActivity.kt @@ -154,4 +154,12 @@ class BookSourceActivity : VMBaseActivity(R.layout.activity } } } + + override fun finish() { + if (search_view.query.isNullOrEmpty()) { + super.finish() + } else { + search_view.setQuery("", true) + } + } } \ No newline at end of file