mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Merge pull request #2915 from nextcloud/tilosp/fix-select-all
Fix the select all button in the file picker
This commit is contained in:
commit
a7f6430fc7
1 changed files with 8 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue