I am writing a simple messenger. I have this form with the dialogues: 
After I enter the name of a new interlocutor in the search and select it, I can be transferred to a new activity. The problem is that when I return to the activity with dialogs, I still have a search phrase with a login on it, the interlocutor we were looking for before. That is so: 
So the question is: how do I close / kill this search string when I return to an activity with dialogs?
// ********* I have this markup:
<?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <item android:id="@+id/action_search" android:icon="@android:drawable/ic_menu_search" app:showAsAction="always" app:actionViewClass="android.support.v7.widget.SearchView" android:title="@string/search_title"/> </menu>