Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 958e97bd authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

Issue 6389: Fix new search not being triggered after clearing with cross.

parent 07209400
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -153,10 +153,13 @@ class SearchFragment :
                     * If we are getting new results from livedata for the old search query,
                     * do not scroll to top as the user may be scrolling to see already
                     * populated results.
                     *
                     * Compare lastSearch with searchText to avoid falsely updating to
                     * current query text even before submitting the new search.
                     */
                    if (lastSearch != query?.toString()) {
                    if (lastSearch != searchText) {
                        recyclerView?.scrollToPosition(0)
                        lastSearch = query.toString()
                        lastSearch = searchText
                    }
                }
            }