diff options
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java index de92d244..78db07f5 100644 --- a/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java +++ b/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java @@ -556,7 +556,14 @@ public class SelectAlbumActivity extends SubsonicTabActivity { } else { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(entry.getPath()), "video/*"); - startActivity(intent); + + List<ResolveInfo> intents = getPackageManager() + .queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); + if(intents != null && intents.size() > 0) { + startActivity(intent); + }else { + Util.toast(this, R.string.download_no_streaming_player); + } } } private void streamExternalPlayer(MusicDirectory.Entry entry) { |