瀏覽代碼

add change to subfolder

tobiasKaminsky 8 年之前
父節點
當前提交
97059873f1
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java

+ 3 - 0
src/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java

@@ -611,6 +611,9 @@ public class ReceiveExternalFilesActivity extends FileActivity
     private void onCreateFolderOperationFinish(CreateFolderOperation operation,
                                                RemoteOperationResult result) {
         if (result.isSuccess()) {
+            String remotePath = operation.getRemotePath().substring(0, operation.getRemotePath().length() - 1);
+            String newFolder = remotePath.substring(remotePath.lastIndexOf("/") + 1);
+            mParents.push(newFolder);
             populateDirectoryList();
         } else {
             try {