Преглед на файлове

VLCMLPlaylist: Rename description to numberOfTracksString

Carola Nitz преди 6 години
родител
ревизия
45f28f0607
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      SharedSources/MediaLibraryModel/PlaylistModel.swift
  2. 1 1
      Sources/MediaCategoryCells/MovieCollectionViewCell.swift

+ 1 - 1
SharedSources/MediaLibraryModel/PlaylistModel.swift

@@ -106,7 +106,7 @@ extension PlaylistModel: MediaLibraryObserver {
 // MARK: - Helpers
 
 extension VLCMLPlaylist {
-    func description() -> String {
+    func numberOfTracksString() -> String {
         let tracksString = media.count == 1 ? NSLocalizedString("TRACK", comment: "") : NSLocalizedString("TRACKS", comment: "")
         return String(format: tracksString, media.count)
     }

+ 1 - 1
Sources/MediaCategoryCells/MovieCollectionViewCell.swift

@@ -70,7 +70,7 @@ class MovieCollectionViewCell: BaseCollectionViewCell {
         collectionOverlay.isHidden = false
         numberOfTracks.text = String(playlist.media.count)
         titleLabel.text = playlist.name
-        descriptionLabel.text = playlist.description()
+        descriptionLabel.text = playlist.numberOfTracksString()
     }
 
     override class func cellSizeForWidth(_ width: CGFloat) -> CGSize {