summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjorn Bringert <bringert@android.com>2009-07-27 12:11:25 +0100
committerBjorn Bringert <bringert@android.com>2009-07-27 12:11:25 +0100
commit9c19b7e37c5507caa209afe57e3ad2069f4b9c55 (patch)
tree1dbd0f9f69e2b55472ea660b46d0fcc3b470792d
parenta0b01b59d8012179185bc322f51c757ed95d9311 (diff)
downloadGoogleSearch-9c19b7e37c5507caa209afe57e3ad2069f4b9c55.tar.gz
Handle ACTION_SEARCH in GoogleSearch
Fixes http://b/issue?id=2014515 for GoogleSearch
-rw-r--r--src/com/android/googlesearch/GoogleSearch.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/googlesearch/GoogleSearch.java b/src/com/android/googlesearch/GoogleSearch.java
index e08f2b1..f7e2a6f 100644
--- a/src/com/android/googlesearch/GoogleSearch.java
+++ b/src/com/android/googlesearch/GoogleSearch.java
@@ -57,7 +57,8 @@ public class GoogleSearch extends Activity {
super.onCreate(savedInstanceState);
mLocationUtils = LocationUtils.getLocationUtils(this);
Intent intent = getIntent();
- if ((intent != null) && Intent.ACTION_WEB_SEARCH.equals(intent.getAction())) {
+ String action = intent != null ? intent.getAction() : null;
+ if (Intent.ACTION_WEB_SEARCH.equals(action) || Intent.ACTION_SEARCH.equals(action)) {
handleWebSearchIntent(intent);
}
finish();