Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 387801cc authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski
Browse files

Exclude virtual files from ACTION_SEND.

Bug: 28312221
Change-Id: Ic137ac5e6140cd9e56dc772ada31bb53e451e5f8
parent 6f4047fe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -710,10 +710,10 @@ public class DirectoryFragment extends Fragment
            void onDocumentsReady(List<DocumentInfo> docs) {
                Intent intent;

                // Filter out directories - those can't be shared.
                // Filter out directories and virtual files - those can't be shared.
                List<DocumentInfo> docsForSend = new ArrayList<>();
                for (DocumentInfo doc: docs) {
                    if (!Document.MIME_TYPE_DIR.equals(doc.mimeType)) {
                    if (!doc.isDirectory() && !doc.isVirtualDocument()) {
                        docsForSend.add(doc);
                    }
                }