mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
remove unused code, fix compile error
This commit is contained in:
parent
30656a11dc
commit
54744078aa
1 changed files with 2 additions and 4 deletions
|
@ -123,7 +123,7 @@ public class MediaProvider {
|
|||
|
||||
if (cursorImages != null) {
|
||||
String filePath;
|
||||
int failedImages = 0;
|
||||
|
||||
while (cursorImages.moveToNext()) {
|
||||
filePath = cursorImages.getString(cursorImages.getColumnIndexOrThrow(
|
||||
MediaStore.MediaColumns.DATA));
|
||||
|
@ -131,8 +131,6 @@ public class MediaProvider {
|
|||
if (filePath != null) {
|
||||
mediaFolder.filePaths.add(filePath);
|
||||
mediaFolder.absolutePath = filePath.substring(0, filePath.lastIndexOf("/"));
|
||||
} else {
|
||||
failedImages++;
|
||||
}
|
||||
}
|
||||
cursorImages.close();
|
||||
|
@ -243,7 +241,7 @@ public class MediaProvider {
|
|||
null);
|
||||
|
||||
if (count != null) {
|
||||
mediaFolder.numberOfFiles = count.getCount() - failedImages;
|
||||
mediaFolder.numberOfFiles = count.getCount();
|
||||
count.close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue