SearchView keeps a query on expanded action

While working on a project I faced the problem that search term was not saved for SearchView. THen I found in the code, that the text view is automatically cleaned up in onActionExpanded callback. PLease review the change