cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject [06/32] git commit: Fix for Search Intercept failures
Date Mon, 03 Feb 2014 20:26:07 GMT
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 <digvijay@lab126.com>
Authored: Mon Jan 20 15:53:04 2014 -0800
Committer: Archana Naik <naika@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.


Mime
View raw message