Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
363af123
Commit
363af123
authored
Apr 06, 2015
by
Felix Paul Kühne
Browse files
detail view: use thumbnail cache
parent
e49aa0a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
VLC for iOS WatchKit Extension/VLCDetailInterfaceController.m
View file @
363af123
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment