Эх сурвалжийг харах

Fix the select all button in the file picker

Signed-off-by: Tilo Spannagel <development@tilosp.de>
Tilo Spannagel 6 жил өмнө
parent
commit
a21c35f7ca

+ 8 - 1
src/main/java/com/owncloud/android/ui/adapter/LocalFileListAdapter.java

@@ -133,7 +133,14 @@ public class LocalFileListAdapter extends RecyclerView.Adapter<RecyclerView.View
     }
 
     public void addAllFilesToCheckedFiles() {
-        checkedFiles.addAll(mFiles);
+        for (File file : mFiles) {
+
+            // only select files
+            if (file.isFile()) {
+                checkedFiles.add(file);
+            }
+
+        }
     }
 
     public void removeAllFilesFromCheckedFiles() {