mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +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) {
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue