Commit 363af123 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

detail view: use thumbnail cache

parent e49aa0a7
......@@ -13,7 +13,7 @@
#import "VLCDetailInterfaceController.h"
#import <MediaLibraryKit/MediaLibraryKit.h>
#import <MobileVLCKit/MobileVLCKit.h>
#import "VLCThumbnailsCache.h"
@interface VLCDetailInterfaceController ()
@property (nonatomic, weak) MLFile *file;
......@@ -58,7 +58,7 @@
self.durationLabel.text = [VLCTime timeWithNumber:file.duration].stringValue;
BOOL playEnabled = file != nil;
self.playNowButton.enabled = playEnabled;
UIImage *thumbnail = file.computedThumbnail;
UIImage *thumbnail = [VLCThumbnailsCache thumbnailForMediaFile:file];
self.imageView.hidden = thumbnail == nil;
if (thumbnail) {
self.imageView.image = thumbnail;
......
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