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:
parent
2f30b3956d
commit
9c7776d289
@ -398,7 +398,7 @@ public class MessageList extends K9Activity implements MessageListFragmentListen
|
|||||||
// check if this intent comes from the system search ( remote )
|
// check if this intent comes from the system search ( remote )
|
||||||
if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
|
if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
|
||||||
//Query was received from Search Dialog
|
//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 = new LocalSearch(getString(R.string.search_results));
|
||||||
mSearch.setManualSearch(true);
|
mSearch.setManualSearch(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user