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
Ewout ter Hoeven
VLC-Android
Commits
d1e9af71
Commit
d1e9af71
authored
Apr 29, 2015
by
Geoffrey Métais
Browse files
Do not check existence here, could be redundant
parent
43e612df
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/MediaDatabase.java
View file @
d1e9af71
...
@@ -895,11 +895,9 @@ public class MediaDatabase {
...
@@ -895,11 +895,9 @@ public class MediaDatabase {
* @param path
* @param path
*/
*/
public
synchronized
void
addDir
(
String
path
)
{
public
synchronized
void
addDir
(
String
path
)
{
if
(!
mediaDirExists
(
path
))
{
ContentValues
values
=
new
ContentValues
();
ContentValues
values
=
new
ContentValues
();
values
.
put
(
DIR_ROW_PATH
,
path
);
values
.
put
(
DIR_ROW_PATH
,
path
);
mDb
.
insert
(
DIR_TABLE_NAME
,
null
,
values
);
mDb
.
insert
(
DIR_TABLE_NAME
,
null
,
values
);
}
}
}
/**
/**
...
...
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