Remove leading/trailing spaces from search string

Some keyboards insert a trailing space when doing word completion.
This commit is contained in:
cketti 2014-12-17 19:17:13 +01:00
parent 2f30b3956d
commit 9c7776d289
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ public class MessageList extends K9Activity implements MessageListFragmentListen
// check if this intent comes from the system search ( remote )
if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
//Query was received from Search Dialog
String query = intent.getStringExtra(SearchManager.QUERY);
String query = intent.getStringExtra(SearchManager.QUERY).trim();
mSearch = new LocalSearch(getString(R.string.search_results));
mSearch.setManualSearch(true);