Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Casanowow Life for love
VLC-Android
Commits
8a55c5ac
Commit
8a55c5ac
authored
Aug 14, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics and comments
parent
23b715d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
vlc-android/src/org/videolan/vlc/MediaLibrary.java
vlc-android/src/org/videolan/vlc/MediaLibrary.java
+6
-5
No files found.
vlc-android/src/org/videolan/vlc/MediaLibrary.java
View file @
8a55c5ac
...
...
@@ -171,7 +171,7 @@ public class MediaLibrary {
root
=
Environment
.
getExternalStorageDirectory
().
getAbsolutePath
();
}
// show progressbar in
head
er
// show progressbar in
foot
er
MainActivity
.
showProgressBar
(
mContext
);
// get directories from database
...
...
@@ -200,16 +200,17 @@ public class MediaLibrary {
File
dir
=
directories
.
pop
();
File
[]
f
=
null
;
// Do no take the media in .nomedia folders
if
(
new
File
(
dir
.
getAbsolutePath
()
+
"/.nomedia"
).
exists
())
{
continue
;
}
// Filter the extensions and the folders
if
((
f
=
dir
.
listFiles
(
mediaFileFilter
))
!=
null
)
{
for
(
int
i
=
0
;
i
<
f
.
length
;
i
++)
{
File
file
=
f
[
i
];
for
(
File
file
:
f
)
{
if
(
file
.
isFile
())
{
total
++;
mediaToScan
.
add
(
file
);
total
++;
}
else
if
(
file
.
isDirectory
())
{
directories
.
push
(
file
);
}
...
...
@@ -253,7 +254,7 @@ public class MediaLibrary {
mDBManager
.
removeMedias
(
existingMedias
.
keySet
());
}
// hide progressbar in
head
er
// hide progressbar in
foot
er
MainActivity
.
clearTextInfo
(
mContext
);
MainActivity
.
hideProgressBar
(
mContext
);
mContext
=
null
;
...
...
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