Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
f0ec8b0b
Commit
f0ec8b0b
authored
Mar 31, 2014
by
Felix Paul Kühne
Browse files
library: fix incorrect appearance of empty folders
parent
d508ca16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Sources/VLCPlaylistCollectionViewCell.m
View file @
f0ec8b0b
...
...
@@ -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
]])
{
...
...
Sources/VLCPlaylistTableViewCell.m
View file @
f0ec8b0b
...
...
@@ -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
]])
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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