show the portrait icon at the thumbnails only when appropriate
This commit is contained in:
parent
84dd54f5a8
commit
ac39523478
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue