I have search functionality in my app. When the search bar is invoked from a "show activity" and the user performs a search, I want to finish the show activity and take the user to the search activity. Is there a way to know if SearchManager.onDismissListener is invoked because of a search being performed?
What I want to avoid is to have several screens of search results > show > search results > show etc, and rather "go back" to search results whenever a search is performed, and thus only have one search activity and one show activity in the stack at any one time.