aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-08-16 14:00:39 -0700
committerScott Jackson <daneren2005@gmail.com>2014-08-16 14:00:39 -0700
commit90daf16be2fec5adbd6e58f4eb6b179434fe5885 (patch)
tree760e4c42872745a6ebb5a3d3d237f7574de6d401 /src
parentb09f9bffeefa663f2eec7849cdbd85cace4b3d9e (diff)
downloaddsub-90daf16be2fec5adbd6e58f4eb6b179434fe5885.tar.gz
dsub-90daf16be2fec5adbd6e58f4eb6b179434fe5885.tar.bz2
dsub-90daf16be2fec5adbd6e58f4eb6b179434fe5885.zip
Fix VLC not liking Uri.parse output for video location
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
index 3f80e793..7adb9115 100644
--- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -1133,10 +1133,10 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
Util.toast(context, R.string.download_need_download);
} else {
DownloadFile check = new DownloadFile(context, entry, false);
- String path = check.getCompleteFile().getAbsolutePath();
+ File file = check.getCompleteFile();
Intent intent = new Intent(Intent.ACTION_VIEW);
- intent.setDataAndType(Uri.parse(path), "video/*");
+ intent.setDataAndType(Uri.fromFile(file), "video/*");
intent.putExtra(Intent.EXTRA_TITLE, entry.getTitle());
List<ResolveInfo> intents = context.getPackageManager()