[Android] MediaLibrary: remove total variable
Jean-Baptiste Kempf
git at videolan.org
Tue Aug 14 15:18:52 CEST 2012
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Aug 14 15:18:39 2012 +0200| [ae1114a3b2cd31cf09f414c124ec5ecb94bedaae] | committer: Jean-Baptiste Kempf
MediaLibrary: remove total variable
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=ae1114a3b2cd31cf09f414c124ec5ecb94bedaae
---
vlc-android/src/org/videolan/vlc/MediaLibrary.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/MediaLibrary.java b/vlc-android/src/org/videolan/vlc/MediaLibrary.java
index a1c022a..6824f62 100644
--- a/vlc-android/src/org/videolan/vlc/MediaLibrary.java
+++ b/vlc-android/src/org/videolan/vlc/MediaLibrary.java
@@ -191,7 +191,6 @@ public class MediaLibrary {
MediaItemFilter mediaFileFilter = new MediaItemFilter();
int count = 0;
- int total = 0;
ArrayList<File> mediaToScan = new ArrayList<File>();
@@ -210,7 +209,6 @@ public class MediaLibrary {
for (File file : f) {
if (file.isFile()) {
mediaToScan.add(file);
- total++;
} else if (file.isDirectory()) {
directories.push(file);
}
@@ -222,7 +220,7 @@ public class MediaLibrary {
for (File file : mediaToScan) {
String fileURI = Util.PathToURI(file.getPath());
MainActivity.sendTextInfo(mContext, file.getName(), count,
- total);
+ mediaToScan.size());
count++;
if (existingMedias.containsKey(fileURI)) {
/**
More information about the Android
mailing list