1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

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

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);