File tree Expand file tree Collapse file tree
owncloudApp/src/main/java/com/owncloud/android
presentation/documentsprovider/cursors Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,16 +47,15 @@ class FileCursor(projection: Array<String>?) : MatrixCursor(projection ?: DEFAUL
4747
4848 flags = flags or Document .FLAG_SUPPORTS_DELETE
4949 flags = flags or Document .FLAG_SUPPORTS_RENAME
50+ flags = flags or Document .FLAG_SUPPORTS_COPY
51+ flags = flags or Document .FLAG_SUPPORTS_MOVE
5052
5153 if (mimeType != Document .MIME_TYPE_DIR ) { // If it is a file
5254 flags = flags or Document .FLAG_SUPPORTS_WRITE
5355 } else if (file.hasAddFilePermission && file.hasAddSubdirectoriesPermission) { // If it is a folder with writing permissions
5456 flags = flags or Document .FLAG_DIR_SUPPORTS_CREATE
5557 }
5658
57- flags = flags or Document .FLAG_SUPPORTS_COPY
58- flags = flags or Document .FLAG_SUPPORTS_MOVE
59-
6059 newRow()
6160 .add(Document .COLUMN_DOCUMENT_ID , file.id.toString())
6261 .add(Document .COLUMN_DISPLAY_NAME , file.fileName)
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments