[Android] Do not reencode uri before playback

Geoffrey Métais git at videolan.org
Tue Nov 20 17:36:05 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Nov 20 17:28:17 2018 +0100| [cb495e0509218e7367929765e518340b1a1ba39c] | committer: Geoffrey Métais

Do not reencode uri before playback

It breaks media shared from other apps

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

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

diff --git a/vlc-android/src/org/videolan/vlc/StartActivity.java b/vlc-android/src/org/videolan/vlc/StartActivity.java
index 1e461be4c..0e238638f 100644
--- a/vlc-android/src/org/videolan/vlc/StartActivity.java
+++ b/vlc-android/src/org/videolan/vlc/StartActivity.java
@@ -115,7 +115,6 @@ public class StartActivity extends FragmentActivity {
     }
 
     private void startPlaybackFromApp(Intent intent) {
-        intent.setData(Uri.parse(Uri.encode(Uri.decode(intent.getDataString()), ".-_~/()&!$*+,;='@:")));
         if (intent.getType() != null && intent.getType().startsWith("video"))
             startActivity(intent.setClass(this, VideoPlayerActivity.class));
         else MediaUtils.INSTANCE.openMediaNoUi(intent.getData());



More information about the Android mailing list