remove unused code, fix compile error

This commit is contained in:
AndyScherzinger 2017-07-28 21:17:50 +02:00
parent 30656a11dc
commit 54744078aa
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -123,7 +123,7 @@ public class MediaProvider {
if (cursorImages != null) { if (cursorImages != null) {
String filePath; String filePath;
int failedImages = 0;
while (cursorImages.moveToNext()) { while (cursorImages.moveToNext()) {
filePath = cursorImages.getString(cursorImages.getColumnIndexOrThrow( filePath = cursorImages.getString(cursorImages.getColumnIndexOrThrow(
MediaStore.MediaColumns.DATA)); MediaStore.MediaColumns.DATA));
@ -131,8 +131,6 @@ public class MediaProvider {
if (filePath != null) { if (filePath != null) {
mediaFolder.filePaths.add(filePath); mediaFolder.filePaths.add(filePath);
mediaFolder.absolutePath = filePath.substring(0, filePath.lastIndexOf("/")); mediaFolder.absolutePath = filePath.substring(0, filePath.lastIndexOf("/"));
} else {
failedImages++;
} }
} }
cursorImages.close(); cursorImages.close();
@ -243,7 +241,7 @@ public class MediaProvider {
null); null);
if (count != null) { if (count != null) {
mediaFolder.numberOfFiles = count.getCount() - failedImages; mediaFolder.numberOfFiles = count.getCount();
count.close(); count.close();
} }