|
@@ -39,6 +39,7 @@ import splitties.init.appCtx
|
|
|
class SearchActivity : VMBaseActivity<ActivityBookSearchBinding, SearchViewModel>(),
|
|
class SearchActivity : VMBaseActivity<ActivityBookSearchBinding, SearchViewModel>(),
|
|
|
BookAdapter.CallBack,
|
|
BookAdapter.CallBack,
|
|
|
HistoryKeyAdapter.CallBack,
|
|
HistoryKeyAdapter.CallBack,
|
|
|
|
|
+ SearchScopeDialog.Callback,
|
|
|
SearchAdapter.CallBack {
|
|
SearchAdapter.CallBack {
|
|
|
|
|
|
|
|
override val binding by viewBinding(ActivityBookSearchBinding::inflate)
|
|
override val binding by viewBinding(ActivityBookSearchBinding::inflate)
|
|
@@ -402,10 +403,18 @@ class SearchActivity : VMBaseActivity<ActivityBookSearchBinding, SearchViewModel
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 删除搜索记录
|
|
|
|
|
+ */
|
|
|
override fun deleteHistory(searchKeyword: SearchKeyword) {
|
|
override fun deleteHistory(searchKeyword: SearchKeyword) {
|
|
|
viewModel.deleteHistory(searchKeyword)
|
|
viewModel.deleteHistory(searchKeyword)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ override fun onSearchScopeOk() {
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
private fun alertSearchScope() {
|
|
private fun alertSearchScope() {
|
|
|
showDialogFragment<SearchScopeDialog>()
|
|
showDialogFragment<SearchScopeDialog>()
|
|
|
}
|
|
}
|