kopia lustrzana https://github.com/ryukoposting/Signal-Android
Do not allow content to play if no media item is available.
rodzic
9416beb4aa
commit
82c12c2f6b
|
@ -1076,14 +1076,14 @@ public final class ConversationItem extends RelativeLayout implements BindableCo
|
|||
thumbnailSlides.get(0).isVideoGif() &&
|
||||
thumbnailSlides.get(0) instanceof VideoSlide)
|
||||
{
|
||||
canPlayContent = GiphyMp4PlaybackPolicy.autoplay() || allowedToPlayInline;
|
||||
|
||||
Uri uri = thumbnailSlides.get(0).getUri();
|
||||
if (uri != null) {
|
||||
mediaItem = MediaItem.fromUri(uri);
|
||||
} else {
|
||||
mediaItem = null;
|
||||
}
|
||||
|
||||
canPlayContent = (GiphyMp4PlaybackPolicy.autoplay() || allowedToPlayInline) && mediaItem != null;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
Ładowanie…
Reference in New Issue