Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-iOS
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
269
Issues
269
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLC-iOS
Commits
c2cb6dae
Commit
c2cb6dae
authored
Jun 20, 2016
by
Felix Paul Kühne
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
box controller: simplify code
parent
edfbdd42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
Sources/VLCBoxController.m
Sources/VLCBoxController.m
+1
-9
No files found.
Sources/VLCBoxController.m
View file @
c2cb6dae
...
...
@@ -205,14 +205,6 @@
}
#endif
-
(
BOOL
)
_supportedFileExtension
:(
NSString
*
)
filename
{
if
([
filename
isSupportedMediaFormat
]
||
[
filename
isSupportedAudioMediaFormat
]
||
[
filename
isSupportedSubtitleFormat
])
return
YES
;
return
NO
;
}
//just pick out Directories and supported formats.
//if the resulting list contains less than 10 items try to get more
...
...
@@ -230,7 +222,7 @@
BOOL
supportedFile
=
NO
;
if
(
!
isDirectory
)
{
BoxFile
*
file
=
(
BoxFile
*
)
boxFile
;
supportedFile
=
[
self
_supportedFileExtension
:[
NSString
stringWithFormat
:
@".%@"
,
file
.
name
.
lastPathComponent
]
];
supportedFile
=
[
[
NSString
stringWithFormat
:
@".%@"
,
file
.
name
.
lastPathComponent
]
isSupportedFormat
];
}
if
(
isDirectory
||
supportedFile
)
...
...
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