show the portrait icon at the thumbnails only when appropriate
This commit is contained in:
parent
84dd54f5a8
commit
ac39523478
|
@ -460,8 +460,10 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Thumbnai
|
||||||
play_outline.beVisibleIf(medium.isVideo() || medium.isPortrait())
|
play_outline.beVisibleIf(medium.isVideo() || medium.isPortrait())
|
||||||
if (medium.isVideo()) {
|
if (medium.isVideo()) {
|
||||||
play_outline.setImageResource(R.drawable.img_play_outline)
|
play_outline.setImageResource(R.drawable.img_play_outline)
|
||||||
|
play_outline.beVisible()
|
||||||
} else if (medium.isPortrait()) {
|
} else if (medium.isPortrait()) {
|
||||||
play_outline.setImageResource(R.drawable.ic_portrait_photo_vector)
|
play_outline.setImageResource(R.drawable.ic_portrait_photo_vector)
|
||||||
|
play_outline.beVisibleIf(showFileTypes)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (showFileTypes && (medium.isGIF() || medium.isRaw() || medium.isSVG())) {
|
if (showFileTypes && (medium.isGIF() || medium.isRaw() || medium.isSVG())) {
|
||||||
|
|
Loading…
Reference in New Issue