Explorar o código

MediaCollectionViewCell: Hide newLabel for Artist & Album

Since these values aren't represented/persisted in the medialibrary,
always hide them for now.
Soomin Lee %!s(int64=5) %!d(string=hai) anos
pai
achega
01cc3588a3
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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()