show the portrait icon at the thumbnails only when appropriate

This commit is contained in:
tibbi 2019-10-01 22:07:54 +02:00
parent 84dd54f5a8
commit ac39523478
1 changed files with 2 additions and 0 deletions

View File

@ -460,8 +460,10 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Thumbnai
play_outline.beVisibleIf(medium.isVideo() || medium.isPortrait())
if (medium.isVideo()) {
play_outline.setImageResource(R.drawable.img_play_outline)
play_outline.beVisible()
} else if (medium.isPortrait()) {
play_outline.setImageResource(R.drawable.ic_portrait_photo_vector)
play_outline.beVisibleIf(showFileTypes)
}
if (showFileTypes && (medium.isGIF() || medium.isRaw() || medium.isSVG())) {