[Android] Handle external content opening in Chrome OS

Nicolas Pomepuy git at videolan.org
Wed Mar 13 11:11:55 CET 2019


vlc-android | branch: 3.1.x | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Mon Mar 11 11:52:59 2019 +0100| [c60601983298ded2a75e3e833e2cc79219346e15] | committer: Geoffrey Métais

Handle external content opening in Chrome OS

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

 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