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 ->
|
searchView.setOnQueryTextFocusChangeListener { _, hasFocus ->
|
||||||
if (!hasFocus && searchView.query.toString().trim().isEmpty()) {
|
if (binding.refreshProgressBar.isAutoLoading || (!hasFocus && adapter.isNotEmpty() && searchView.query.isNotBlank())){
|
||||||
finish()
|
visibleInputHelp(false)
|
||||||
} else {
|
} else {
|
||||||
visibleInputHelp(hasFocus)
|
visibleInputHelp(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
visibleInputHelp(true)
|
visibleInputHelp(true)
|
||||||
|
Loading…
Reference in New Issue
Block a user