From: tobiasKaminsky Date: Fri, 13 Nov 2015 16:41:49 +0000 (+0100) Subject: Merge remote-tracking branch 'remotes/upstream/descendIntoFolder' into beta X-Git-Tag: beta-20151122~26 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/423b208d68690f482c735f16ad73f721506e7c8b?hp=7d6a3630aebda914cd053b3c6f577ac4cb69ef7a Merge remote-tracking branch 'remotes/upstream/descendIntoFolder' into beta --- diff --git a/src/com/owncloud/android/operations/CreateFolderOperation.java b/src/com/owncloud/android/operations/CreateFolderOperation.java index b020b92c..0b3343c6 100644 --- a/src/com/owncloud/android/operations/CreateFolderOperation.java +++ b/src/com/owncloud/android/operations/CreateFolderOperation.java @@ -121,4 +121,8 @@ public class CreateFolderOperation extends SyncOperation implements OnRemoteOper Log_OC.d(TAG, "Create directory " + mRemotePath + " in Database"); } } + + public String getRemotePath() { + return mRemotePath; + } } diff --git a/src/com/owncloud/android/ui/activity/Uploader.java b/src/com/owncloud/android/ui/activity/Uploader.java index 0194092d..37363e45 100644 --- a/src/com/owncloud/android/ui/activity/Uploader.java +++ b/src/com/owncloud/android/ui/activity/Uploader.java @@ -605,6 +605,10 @@ public class Uploader extends FileActivity private void onCreateFolderOperationFinish(CreateFolderOperation operation, 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 { try {