descend into folder after creating it in uploader
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / activity / Uploader.java
index d221bc9..4efb8d0 100644 (file)
@@ -608,6 +608,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();