cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject [17/50] git commit: Filter out non-launchable intents
Date Thu, 28 Aug 2014 19:03:31 GMT
Filter out non-launchable intents


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/e8868ebe
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/e8868ebe
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/e8868ebe

Branch: refs/heads/master
Commit: e8868ebedd8d1af27bf47b91edd2a5bd61852fcb
Parents: 48ba003
Author: Ian Clelland <iclelland@chromium.org>
Authored: Tue Jul 22 13:53:33 2014 -0400
Committer: Archana Naik <naika@lab126.com>
Committed: Mon Aug 18 12:31:14 2014 -0700

----------------------------------------------------------------------
 framework/src/org/apache/cordova/CordovaUriHelper.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/e8868ebe/framework/src/org/apache/cordova/CordovaUriHelper.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaUriHelper.java b/framework/src/org/apache/cordova/CordovaUriHelper.java
index 15c2370..f1c892c 100644
--- a/framework/src/org/apache/cordova/CordovaUriHelper.java
+++ b/framework/src/org/apache/cordova/CordovaUriHelper.java
@@ -69,6 +69,9 @@ class CordovaUriHelper {
             try {
                 Intent intent = new Intent(Intent.ACTION_VIEW);
                 intent.setData(Uri.parse(url));
+                intent.addCategory(Intent.CATEGORY_BROWSABLE);
+                intent.setComponent(null);
+                intent.setSelector(null);
                 this.cordova.getActivity().startActivity(intent);
             } catch (android.content.ActivityNotFoundException e) {
                 LOG.e(TAG, "Error loading url " + url, e);


Mime
View raw message