mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
commit
5809d58f05
@ -202,10 +202,10 @@ class SearchActivity : VMBaseActivity<ActivityBookSearchBinding, SearchViewModel
|
||||
}
|
||||
})
|
||||
searchView.setOnQueryTextFocusChangeListener { _, hasFocus ->
|
||||
if (!hasFocus && searchView.query.toString().trim().isEmpty()) {
|
||||
finish()
|
||||
if (binding.refreshProgressBar.isAutoLoading || (!hasFocus && adapter.isNotEmpty() && searchView.query.isNotBlank())){
|
||||
visibleInputHelp(false)
|
||||
} else {
|
||||
visibleInputHelp(hasFocus)
|
||||
visibleInputHelp(true)
|
||||
}
|
||||
}
|
||||
visibleInputHelp(true)
|
||||
|
Loading…
Reference in New Issue
Block a user