OSDN Git Service

Fix 1984809. Select the url when SEARCH key is pressed in the Browser.
authorGrace Kloba <klobag@google.com>
Mon, 20 Jul 2009 17:44:31 +0000 (10:44 -0700)
committerGrace Kloba <klobag@google.com>
Mon, 20 Jul 2009 17:44:31 +0000 (10:44 -0700)
src/com/android/browser/BrowserActivity.java

index f9c4dc9..bda0118 100644 (file)
@@ -1440,7 +1440,7 @@ public class BrowserActivity extends Activity
     @Override
     public boolean onSearchRequested() {
         String url = getTopWindow().getUrl();
-        startSearch(mSettings.getHomePage().equals(url) ? null : url, false,
+        startSearch(mSettings.getHomePage().equals(url) ? null : url, true,
                 createGoogleSearchSourceBundle(GOOGLE_SEARCH_SOURCE_SEARCHKEY), false);
         return true;
     }