diff options
author | kai.cao <kai.cao@ck-telecom.com> | 2015-09-07 15:12:24 +0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-09-16 13:47:58 -0700 |
commit | 7676605c9608c624cd078fd9b63ef8236c4c16ae (patch) | |
tree | a962b78224b0883b9384202eb11dc6256208210e | |
parent | 93d66a330b78700a7921950f773316fdd2cf50a2 (diff) | |
download | android_packages_apps_CMFileManager-7676605c9608c624cd078fd9b63ef8236c4c16ae.tar.gz android_packages_apps_CMFileManager-7676605c9608c624cd078fd9b63ef8236c4c16ae.tar.bz2 android_packages_apps_CMFileManager-7676605c9608c624cd078fd9b63ef8236c4c16ae.zip |
[CMFileManager] Fix fail to move a folder
Fix fail to move a folder to another folder when the one folder name contains the another folder name.
[Reproduce]
1. Create a folder named such as aaa
2. Create another folder named such as aaab
3. Copy or Move the folder aaa to folder aaab
The Operation Fail
Change-Id: I27996f9b9530001fe01eddf80a0cac7a8531c163
-rwxr-xr-x | src/com/cyanogenmod/filemanager/ui/policy/CopyMoveActionPolicy.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/filemanager/ui/policy/CopyMoveActionPolicy.java b/src/com/cyanogenmod/filemanager/ui/policy/CopyMoveActionPolicy.java index 73d08ee2..f8936352 100755 --- a/src/com/cyanogenmod/filemanager/ui/policy/CopyMoveActionPolicy.java +++ b/src/com/cyanogenmod/filemanager/ui/policy/CopyMoveActionPolicy.java @@ -558,7 +558,7 @@ public final class CopyMoveActionPolicy extends ActionsPolicy { int cc = files.size(); for (int i = 0; i < cc; i++) { LinkedResource linkRes = files.get(i); - String src = linkRes.mSrc.getAbsolutePath(); + String src = FileHelper.addTrailingSlash(linkRes.mSrc.getAbsolutePath()); String dst = linkRes.mDst.getAbsolutePath(); // 1.- Current directory can't be moved |