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

Commit 4cf42568 authored by Ben Lin's avatar Ben Lin Committed by android-build-merger
Browse files

Merge "Allow folders to be copied into Downloads." into oc-dev

am: b0831980

Change-Id: I11262e4de0cc8676497f8bf8b86281a78df7a3a0
parents d05f392f b0831980
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -272,12 +272,6 @@ class CopyJob extends ResolvedResourcesJob {
        Metrics.logFileOperation(service, operationType, mResolvedDocs, mDstInfo);
    }

    @Override
    boolean isEligibleDoc(DocumentInfo doc, RootInfo root) {
        // Can't copy folders to downloads, because we don't show folders there.
        return !root.isDownloads() || !doc.isDirectory();
    }

    /**
     * Checks whether the destination folder has enough space to take all source files.
     * @return true if the root has enough space or doesn't provide free space info; otherwise false