This commit is contained in:
tarsin committed 2023-01-02 21:03:47 +08:00
1 parent 1a86eef52c
commit 80fcda149b
2 files changed
+3

No files matched your search

@@ -84,6 +84,7 @@ abstract class BaseToolbarScene : BaseScene(), ToolBarScene {
}
fun setTitle(title: CharSequence?) {
_binding ?: return
binding.toolbar.title = title
}
@@ -319,6 +319,7 @@ abstract class SearchBarScene : BaseScene(), ToolBarScene {
@SuppressLint("NotifyDataSetChanged")
private fun updateSuggestions(scrollToTop: Boolean = true) {
_binding ?: return
viewLifecycleOwner.lifecycleScope.launch {
val suggestions = mutableListOf<Suggestion>()
mergedSuggestionFlow().collect {
@@ -362,6 +363,7 @@ abstract class SearchBarScene : BaseScene(), ToolBarScene {
}
fun showSearchBar() {
_binding ?: return
binding.appbar.setExpanded(true)
}