descend into folder after creating it in uploader
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / activity / Uploader.java
index 533bb99..54aac4d 100644 (file)
@@ -602,6 +602,9 @@ public class Uploader extends FileActivity
                                                RemoteOperationResult result) {
         if (result.isSuccess()) {
             dismissLoadingDialog();
+            String remotePath = operation.getRemotePath().substring(0, operation.getRemotePath().length() -1);
+            String newFolder = remotePath.substring(remotePath.lastIndexOf("/") + 1);
+            mParents.push(newFolder);
             populateDirectoryList();
         } else {
             dismissLoadingDialog();