commit | d01aac3a819c1d2076493b95015c84916c35bb67 | [log] [tgz] |
---|---|---|
author | Aga Wronska <agawronska@google.com> | Wed Mar 23 15:49:45 2016 -0700 |
committer | Aga Wronska <agawronska@google.com> | Wed Mar 23 16:15:30 2016 -0700 |
tree | 59904adf5c70c758661f02e9f850740d1ed676e9 | |
parent | 49435a72955fd6d2673ac33c34e2417c96fd87fb [diff] |
Fix copying folders using keyboard shortcuts Change-Id: I1f7797cfc7d0b564b8c70a26b3eca49b02c0da55 Fixed: 27409583
diff --git a/packages/DocumentsUI/src/com/android/documentsui/dirlist/DirectoryFragment.java b/packages/DocumentsUI/src/com/android/documentsui/dirlist/DirectoryFragment.java index b2fd9c4..e55dd27 100644 --- a/packages/DocumentsUI/src/com/android/documentsui/dirlist/DirectoryFragment.java +++ b/packages/DocumentsUI/src/com/android/documentsui/dirlist/DirectoryFragment.java
@@ -1042,7 +1042,7 @@ } // 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;
diff --git a/packages/DocumentsUI/src/com/android/documentsui/services/FileOperations.java b/packages/DocumentsUI/src/com/android/documentsui/services/FileOperations.java index b53e165..748da00 100644 --- a/packages/DocumentsUI/src/com/android/documentsui/services/FileOperations.java +++ b/packages/DocumentsUI/src/com/android/documentsui/services/FileOperations.java
@@ -158,11 +158,11 @@ } /** - * 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 @@ * * @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(