Commit ae1114a3 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

MediaLibrary: remove total variable

parent bbaf1515
......@@ -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)) {
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment