Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
cfa90749
Commit
cfa90749
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Medialibrary: add init checks
parent
cf9ac030
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
medialibrary/src/org/videolan/medialibrary/Medialibrary.java
+6
-4
6 additions, 4 deletions
medialibrary/src/org/videolan/medialibrary/Medialibrary.java
with
6 additions
and
4 deletions
medialibrary/src/org/videolan/medialibrary/Medialibrary.java
+
6
−
4
View file @
cfa90749
...
...
@@ -78,7 +78,7 @@ public class Medialibrary {
}
public
String
[]
getDevices
()
{
return
nativeDevices
()
;
return
mIsInitiated
?
nativeDevices
()
:
new
String
[
0
]
;
}
public
void
addDevice
(
String
uuid
,
String
path
,
boolean
removable
)
{
...
...
@@ -86,11 +86,13 @@ public class Medialibrary {
}
public
void
discover
(
String
path
)
{
nativeDiscover
(
Tools
.
encodeVLCMrl
(
path
));
if
(
mIsInitiated
)
nativeDiscover
(
Tools
.
encodeVLCMrl
(
path
));
}
public
void
removeFolder
(
String
path
)
{
nativeRemoveEntryPoint
(
Tools
.
encodeVLCMrl
(
path
));
if
(
mIsInitiated
)
nativeRemoveEntryPoint
(
Tools
.
encodeVLCMrl
(
path
));
}
public
String
[]
getFoldersList
()
{
...
...
@@ -100,7 +102,7 @@ public class Medialibrary {
}
public
boolean
removeDevice
(
String
uuid
)
{
return
nativeRemoveDevice
(
uuid
);
return
mIsInitiated
&&
nativeRemoveDevice
(
uuid
);
}
@Override
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment