You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by na...@apache.org on 2014/02/03 21:26:07 UTC
[06/32] git commit: Fix for Search Intercept failures
Fix for Search Intercept failures
JIRA:https://issues.labcollab.net/browse/ATLS-657
Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/d1b288b2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/d1b288b2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/d1b288b2
Branch: refs/heads/3.4.x
Commit: d1b288b21a2c274a07f5e535d9ed2a6585a3c505
Parents: 19cfdf6
Author: Digvijay Dalapathi <di...@lab126.com>
Authored: Mon Jan 20 15:53:04 2014 -0800
Committer: Archana Naik <na...@lab126.com>
Committed: Mon Feb 3 11:09:46 2014 -0800
----------------------------------------------------------------------
framework/src/org/apache/cordova/CordovaActivity.java | 13 +++++++++++++
1 file changed, 13 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/d1b288b2/framework/src/org/apache/cordova/CordovaActivity.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaActivity.java b/framework/src/org/apache/cordova/CordovaActivity.java
index 8c11d3d..28c51e2 100755
--- a/framework/src/org/apache/cordova/CordovaActivity.java
+++ b/framework/src/org/apache/cordova/CordovaActivity.java
@@ -720,6 +720,19 @@ public class CordovaActivity extends Activity implements CordovaInterface {
this.getIntent().putExtra(name.toLowerCase(), value);
}
+ /*
+ * Called when a search event is given. Triggers the javascript event to
+ * handle Search.
+ *
+ * @see android.app.Activity#onSearchRequested()
+ */
+ @Override
+ public boolean onSearchRequested() {
+ this.sendJavascript("javascript:cordova.fireDocumentEvent('searchbutton');");
+ // Return true to stop unified search from loading
+ return true;
+ }
+
@Override
/**
* Called when the system is about to start resuming a previous activity.