Trim the extra whitespace before passing to SearchDialog.
Fixes http://b/issue?id=2427810
diff --git a/src/com/android/browser/TitleBar.java b/src/com/android/browser/TitleBar.java
index b86073b..56c2856 100644
--- a/src/com/android/browser/TitleBar.java
+++ b/src/com/android/browser/TitleBar.java
@@ -199,7 +199,7 @@
mHandler.removeMessages(LONG_PRESS);
if (mInVoiceMode) {
mBrowserActivity.showVoiceSearchResults(
- mTitle.getText().toString());
+ mTitle.getText().toString().trim());
} else {
mBrowserActivity.onSearchRequested();
}