OSDN Git Service

Fix copying folders using keyboard shortcuts
authorAga Wronska <agawronska@google.com>
Wed, 23 Mar 2016 22:49:45 +0000 (15:49 -0700)
committerAga Wronska <agawronska@google.com>
Wed, 23 Mar 2016 23:15:30 +0000 (16:15 -0700)
Change-Id: I1f7797cfc7d0b564b8c70a26b3eca49b02c0da55
Fixed: 27409583

packages/DocumentsUI/src/com/android/documentsui/dirlist/DirectoryFragment.java
packages/DocumentsUI/src/com/android/documentsui/services/FileOperations.java

index b2fd9c4..e55dd27 100644 (file)
@@ -1042,7 +1042,7 @@ public class DirectoryFragment extends Fragment
         }
 
         // Can't copy folders to downloads, because we don't show folders there.
-        if (!root.isDownloads()) {
+        if (root.isDownloads()) {
             for (DocumentInfo docs : files) {
                 if (docs.isDirectory()) {
                     return false;
index b53e165..748da00 100644 (file)
@@ -158,11 +158,11 @@ public final class FileOperations {
     }
 
     /**
-     * Starts the service for a move operation.
+     * Starts the service for a delete operation.
      *
      * @param jobId A unique jobid for this job.
      *     Use {@link #createJobId} if you don't have one handy.
-     * @param srcDocs A list of src files to copy.
+     * @param srcDocs A list of src files to delete.
      * @param srcParent Parent of all the source documents.
      * @return Id of the job.
      */
@@ -184,7 +184,7 @@ public final class FileOperations {
      *
      * @param jobId A unique jobid for this job.
      *     Use {@link #createJobId} if you don't have one handy.
-     * @param srcDocs A list of src files to copy.
+     * @param srcDocs A list of src files for an operation.
      * @return Id of the job.
      */
     public static Intent createBaseIntent(