Merge pull request #2915 from nextcloud/tilosp/fix-select-all

Fix the select all button in the file picker
This commit is contained in:
Andy Scherzinger 2018-08-23 13:20:41 +02:00 committed by GitHub
commit a7f6430fc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {