[Android] Always open media with playback service

Geoffrey Métais git at videolan.org
Fri Oct 6 15:16:05 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Oct  6 14:48:41 2017 +0200| [43a6a151f7771edca432f0fb33b09bd8afd9cf7a] | committer: Geoffrey Métais

Always open media with playback service

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

 vlc-android/src/org/videolan/vlc/StartActivity.java | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/StartActivity.java b/vlc-android/src/org/videolan/vlc/StartActivity.java
index 5182d719a..3073c44a8 100644
--- a/vlc-android/src/org/videolan/vlc/StartActivity.java
+++ b/vlc-android/src/org/videolan/vlc/StartActivity.java
@@ -36,7 +36,6 @@ import org.videolan.vlc.gui.MainActivity;
 import org.videolan.vlc.gui.SearchActivity;
 import org.videolan.vlc.gui.tv.MainTvActivity;
 import org.videolan.vlc.gui.tv.audioplayer.AudioPlayerActivity;
-import org.videolan.vlc.gui.video.VideoPlayerActivity;
 import org.videolan.vlc.media.MediaUtils;
 import org.videolan.vlc.util.AndroidDevices;
 import org.videolan.vlc.util.Permissions;
@@ -58,10 +57,7 @@ public class StartActivity extends Activity {
 
         if (Intent.ACTION_VIEW.equals(action) && intent.getData() != null) {
             intent.setDataAndType(intent.getData(), intent.getType());
-            if (intent.getType() != null && intent.getType().startsWith("video"))
-                startActivity(intent.setClass(this, VideoPlayerActivity.class));
-            else
-                MediaUtils.openMediaNoUi(intent.getData());
+            MediaUtils.openMediaNoUi(intent.getData());
             finish();
             return;
         }



More information about the Android mailing list