Skip to content
Snippets Groups Projects
Commit cb495e05 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Do not reencode uri before playback

It breaks media shared from other apps
parent 279ce60e
No related branches found
No related tags found
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment