fix(search): keep PROCESS_TEXT on the results screen
handleExternalSearch auto-opened the article on an exact match, so the main screen with the search bar flashed before the article covered it. Only set the query; the article now opens from the results list.
This commit is contained in:
1 parent
c051ba9585
commit
7deabeb02a
1 file changed
+1
-5
@@ -321,11 +321,7 @@ class SearchViewModel(
|
||||
}
|
||||
|
||||
fun handleExternalSearch(text: String) {
|
||||
viewModelScope.launch {
|
||||
val sanitizedText = text.sanitizeQuery()
|
||||
mutableSearchQuery.value = sanitizedText
|
||||
searchAndLoadArticle(sanitizedText)
|
||||
}
|
||||
onSearchQueryChanged(text)
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
Reference in new issue
Block a user