summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2014-06-20 00:41:24 +0100
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2014-06-20 00:41:24 +0100
commitb3af9e06c097c587ad7340ff5a67b6cb8f4cc2b0 (patch)
tree33758f50c5b89050a21ef1d5537f2d8a27d33a32
parent552470ba3b3a3dcf2e80061f0089c06be0fd52d2 (diff)
parent7a7dce808e1545e859b80b86f0279ee68ce3f0cc (diff)
downloadandroid_frameworks_webview-shipping/cm-11.0.tar.gz
android_frameworks_webview-shipping/cm-11.0.tar.bz2
android_frameworks_webview-shipping/cm-11.0.zip
Android 4.4.4 Release 1
-rw-r--r--chromium/java/com/android/webview/chromium/WebViewContentsClientAdapter.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/java/com/android/webview/chromium/WebViewContentsClientAdapter.java b/chromium/java/com/android/webview/chromium/WebViewContentsClientAdapter.java
index 8749985..3a81c0d 100644
--- a/chromium/java/com/android/webview/chromium/WebViewContentsClientAdapter.java
+++ b/chromium/java/com/android/webview/chromium/WebViewContentsClientAdapter.java
@@ -189,6 +189,11 @@ public class WebViewContentsClientAdapter extends AwContentsClient {
// security (only access to BROWSABLE activities).
intent.addCategory(Intent.CATEGORY_BROWSABLE);
intent.setComponent(null);
+ Intent selector = intent.getSelector();
+ if (selector != null) {
+ selector.addCategory(Intent.CATEGORY_BROWSABLE);
+ selector.setComponent(null);
+ }
// Pass the package name as application ID so that the intent from the
// same application can be opened in the same tab.
intent.putExtra(Browser.EXTRA_APPLICATION_ID,