Browse Source

MediaCollectionViewCell: Use thumbnailImage to show placeholder

(closes #599)
Carola Nitz 5 years ago
parent
commit
1b9f4bb569
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Sources/MediaCategoryCells/MediaCollectionViewCell.swift

+ 1 - 3
Sources/MediaCategoryCells/MediaCollectionViewCell.swift

@@ -95,9 +95,7 @@ class MediaCollectionViewCell: BaseCollectionViewCell {
         titleLabel.text = title
         accessibilityLabel = movie.accessibilityText(editing: false)
         descriptionLabel.text = movie.mediaDuration()
-        if movie.isThumbnailGenerated() {
-            thumbnailView.image = UIImage(contentsOfFile: movie.thumbnail()?.path ?? "")
-        }
+        thumbnailView.image = movie.thumbnailImage()
         newLabel.isHidden = !movie.isNew
     }