mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
revert creating object in loop
This commit is contained in:
parent
853350221f
commit
d3754d156a
1 changed files with 2 additions and 1 deletions
|
@ -2159,9 +2159,10 @@ public class FileDataStorageManager {
|
|||
}
|
||||
|
||||
if (onlyImages) {
|
||||
OCFile current;
|
||||
Vector<OCFile> temp = new Vector<>();
|
||||
for (int i=0; i < ocFiles.size(); i++) {
|
||||
OCFile current = ocFiles.get(i);
|
||||
current = ocFiles.get(i);
|
||||
if (MimeTypeUtil.isImage(current)) {
|
||||
temp.add(current);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue