Explorar o código

MediaCollectionViewCell: Use thumbnailImage to show placeholder

(closes #599)
Carola Nitz %!s(int64=5) %!d(string=hai) anos
pai
achega
1b9f4bb569
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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
     }