This commit is contained in:
Horis 2024-02-07 13:02:11 +08:00
parent fb5f24de60
commit 3c7fb08205

View File

@ -306,7 +306,6 @@ class SearchActivity : VMBaseActivity<ActivityBookSearchBinding, SearchViewModel
}
if (viewModel.isSearchLiveData.value == false
&& viewModel.searchKey.isNotEmpty()
&& viewModel.searchBookLiveData.value?.isNotEmpty() == true
) {
viewModel.search("")
}
@ -368,7 +367,6 @@ class SearchActivity : VMBaseActivity<ActivityBookSearchBinding, SearchViewModel
* 开始搜索
*/
private fun startSearch() {
binding.refreshProgressBar.visible()
binding.refreshProgressBar.isAutoLoading = true
binding.fbStop.visible()
}
@ -378,7 +376,6 @@ class SearchActivity : VMBaseActivity<ActivityBookSearchBinding, SearchViewModel
*/
private fun searchFinally() {
binding.refreshProgressBar.isAutoLoading = false
binding.refreshProgressBar.gone()
binding.fbStop.invisible()
}