Commit 74c14767 authored by Soomin Lee's avatar Soomin Lee
Browse files

VLCMediaCategoryViewController: Simplify VLCMLMedia code

parent c00f6cd7
...@@ -196,10 +196,7 @@ class VLCMediaCategoryViewController: UICollectionViewController, UICollectionVi ...@@ -196,10 +196,7 @@ class VLCMediaCategoryViewController: UICollectionViewController, UICollectionVi
} }
if let media = category.anyfiles[indexPath.row] as? VLCMLMedia { if let media = category.anyfiles[indexPath.row] as? VLCMLMedia {
playlistCell.media = media playlistCell.media = (media.mainFile() != nil) ? media : nil
if media.mainFile() == nil {
playlistCell.media = nil
}
} }
return playlistCell return playlistCell
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment