Commit f0ec8b0b authored by Felix Paul Kühne's avatar Felix Paul Kühne

library: fix incorrect appearance of empty folders

parent d508ca16
......@@ -182,10 +182,7 @@
[self _configureForFolder:mediaObject];
if ([keyPath isEqualToString:@"files"] || !keyPath || (!self.thumbnailView.image && [keyPath isEqualToString:@"editing"])) {
if (mediaObject.files.count == 0) {
self.thumbnailView.contentMode = UIViewContentModeScaleAspectFit;
self.thumbnailView.image = [UIImage imageNamed:@"folderIcon"];
} else
if (mediaObject.files.count != 0)
self.thumbnailView.image = [VLCThumbnailsCache thumbnailForLabel:mediaObject];
}
} else if ([self.mediaObject isKindOfClass:[MLAlbum class]]) {
......
......@@ -160,10 +160,7 @@
[self _configureForFolder:mediaObject];
if ([keyPath isEqualToString:@"files"] || !keyPath || (!self.thumbnailView.image && [keyPath isEqualToString:@"editing"])) {
if (mediaObject.files.count == 0) {
self.thumbnailView.contentMode = UIViewContentModeScaleAspectFit;
self.thumbnailView.image = [UIImage imageNamed:@"folderIcon"];
} else
if (mediaObject.files.count != 0)
self.thumbnailView.image = [VLCThumbnailsCache thumbnailForLabel:mediaObject];
}
} else if ([self.mediaObject isKindOfClass:[MLAlbum class]]) {
......
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