Pārlūkot izejas kodu

correct filtering of images

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 6 gadi atpakaļ
vecāks
revīzija
dc2e8f9027

+ 1 - 1
src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java

@@ -2182,7 +2182,7 @@ public class FileDataStorageManager {
         if (onlyImages) {
             List<OCFile> temp = new ArrayList<>();
 
-            for (OCFile file : temp) {
+            for (OCFile file : ocFiles) {
                 if (MimeTypeUtil.isImage(file)) {
                     temp.add(file);
                 }