Browse Source

MediaCollectionViewCell: Hide newLabel for Artist & Album

Since these values aren't represented/persisted in the medialibrary,
always hide them for now.
Soomin Lee 5 years ago
parent
commit
01cc3588a3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Sources/MediaCategoryCells/MediaCollectionViewCell.swift

+ 2 - 0
Sources/MediaCategoryCells/MediaCollectionViewCell.swift

@@ -90,6 +90,7 @@ class MediaCollectionViewCell: BaseCollectionViewCell {
     }
 
     func update(album: VLCMLAlbum) {
+        newLabel.isHidden = true
         titleLabel.text = album.albumName()
         accessibilityLabel = album.accessibilityText(editing: false)
         descriptionLabel.text = album.albumArtistName()
@@ -97,6 +98,7 @@ class MediaCollectionViewCell: BaseCollectionViewCell {
     }
 
     func update(artist: VLCMLArtist) {
+        newLabel.isHidden = true
         thumbnailView.layer.masksToBounds = true
         thumbnailView.layer.cornerRadius = thumbnailView.frame.size.width / 2.0
         titleLabel.text = artist.artistName()