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
2f0b0a0e
Commit
2f0b0a0e
authored
Apr 06, 2015
by
Felix Paul Kühne
Browse files
fix exception when listing an MLShow, cosmetics
parent
f20ac797
Changes
1
Hide whitespace changes
Inline
Side-by-side
VLC for iOS WatchKit Extension/InterfaceController.m
View file @
2f0b0a0e
...
...
@@ -34,8 +34,6 @@ typedef enum {
@property
(
nonatomic
)
VLCLibraryMode
libraryMode
;
@end
@implementation
InterfaceController
-
(
void
)
awakeWithContext
:(
id
)
context
{
...
...
@@ -137,7 +135,7 @@ typedef enum {
-
(
void
)
configureTableRowController
:(
id
)
rowController
withObject
:(
MLFile
*
)
object
{
VLCRowController
*
row
=
rowController
;
if
([
object
isKindOfClass
:[
MLAlbum
class
]]
||
[
object
isKindOfClass
:[
MLShowEpisode
class
]]
||
[
object
isKindOfClass
:[
MLLabel
class
]]
){
if
([
object
isKindOfClass
:[
MLAlbum
class
]]
||
[
object
isKindOfClass
:[
MLShowEpisode
class
]]
||
[
object
isKindOfClass
:[
MLShow
class
]]
||
[
object
isKindOfClass
:[
MLLabel
class
]]
){
//no matter what class it is it has a name property
row
.
titleLabel
.
text
=
((
MLAlbum
*
)
object
).
name
;
//TODO: set placeholderimage
...
...
@@ -159,14 +157,14 @@ typedef enum {
//TODO: make this dynamical width
CGSize
newSize
=
CGSizeMake
(
130
,
60
);
UIGraphicsBeginImageContext
(
newSize
);
UIGraphicsBeginImageContext
(
newSize
);
// Use existing opacity as is
[
backgroundImage
drawInRect
:
CGRectMake
(
0
,
0
,
newSize
.
width
,
newSize
.
height
)];
[
gradient
drawInRect
:
CGRectMake
(
0
,
40
,
newSize
.
width
,
20
)
blendMode
:
kCGBlendModeNormal
alpha
:
1
.
0
];
UIImage
*
newImage
=
UIGraphicsGetImageFromCurrentImageContext
();
UIGraphicsEndImageContext
();
return
newImage
;
}
...
...
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