Have to set the fallback URL

This commit is contained in:
Tom Hennen 2015-06-19 17:24:07 -04:00
parent bdf77a34f4
commit aa789fa51d
1 changed files with 8 additions and 0 deletions

View File

@ -414,6 +414,14 @@ public class FeedMedia extends FeedFile implements Playable {
if (hasEmbeddedPicture()) {
Uri.Builder builder = new Uri.Builder();
builder.scheme(SCHEME_MEDIA).encodedPath(getLocalMediaUrl());
if (item != null && item.getFeed() != null) {
final Uri feedImgUri = item.getFeed().getImageUri();
if (feedImgUri != null) {
builder.appendQueryParameter(PARAM_FALLBACK, feedImgUri.toString());
}
}
return builder.build();
} else {
return item.getImageUri();