OSDN Git Service

Trim the extra whitespace before passing to SearchDialog.
authorLeon Scroggins <scroggo@google.com>
Mon, 8 Feb 2010 19:08:30 +0000 (14:08 -0500)
committerLeon Scroggins <scroggo@google.com>
Mon, 8 Feb 2010 19:08:30 +0000 (14:08 -0500)
Fixes http://b/issue?id=2427810

src/com/android/browser/TitleBar.java

index b86073b..56c2856 100644 (file)
@@ -199,7 +199,7 @@ public class TitleBar extends LinearLayout {
                     mHandler.removeMessages(LONG_PRESS);
                     if (mInVoiceMode) {
                         mBrowserActivity.showVoiceSearchResults(
-                                mTitle.getText().toString());
+                                mTitle.getText().toString().trim());
                     } else {
                         mBrowserActivity.onSearchRequested();
                     }