[Android] Handle external content opening in Chrome OS

Nicolas Pomepuy git at videolan.org
Mon Mar 11 14:48:14 CET 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Mon Mar 11 11:52:59 2019 +0100| [e249b77a3f5aaa28b08235d3ebe495308649ece2] | committer: Nicolas Pomepuy

Handle external content opening in Chrome OS

> https://code.videolan.org/videolan/vlc-android/commit/e249b77a3f5aaa28b08235d3ebe495308649ece2
---

 vlc-android/src/org/videolan/vlc/StartActivity.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/StartActivity.java b/vlc-android/src/org/videolan/vlc/StartActivity.java
index 65358aab9..7f65ce656 100644
--- a/vlc-android/src/org/videolan/vlc/StartActivity.java
+++ b/vlc-android/src/org/videolan/vlc/StartActivity.java
@@ -59,7 +59,7 @@ public class StartActivity extends FragmentActivity {
         final Intent intent = getIntent();
         final String action = intent != null ? intent.getAction(): null;
 
-        if (Intent.ACTION_VIEW.equals(action) && intent.getData() != null
+        if ((Intent.ACTION_VIEW.equals(action) || "org.chromium.arc.intent.action.VIEW".equals(action)) && intent.getData() != null
                 && !TvChannelUtilsKt.TV_CHANNEL_SCHEME.equals(intent.getData().getScheme())) {
             startPlaybackFromApp(intent);
             return;



More information about the Android mailing list