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=-c Merge remote-tracking branch 'remotes/upstream/descendIntoFolder' into beta --- 423b208d68690f482c735f16ad73f721506e7c8b diff --combined src/com/owncloud/android/ui/activity/Uploader.java index 0194092d,4efb8d0d..37363e45 --- a/src/com/owncloud/android/ui/activity/Uploader.java +++ b/src/com/owncloud/android/ui/activity/Uploader.java @@@ -333,7 -333,8 +333,7 @@@ public class Uploader extends FileActiv public void onItemClick(AdapterView parent, View view, int position, long id) { // click on folder in the list Log_OC.d(TAG, "on item click"); - // TODO Enable when "On Device" is recovered ? - Vector tmpfiles = getStorageManager().getFolderContent(mFile /*, false*/); + Vector tmpfiles = getStorageManager().getFolderContent(mFile, false); if (tmpfiles.size() <= 0) return; // filter on dirtype Vector files = new Vector(); @@@ -417,7 -418,8 +417,7 @@@ mFile = getStorageManager().getFileByPath(full_path); if (mFile != null) { - // TODO Enable when "On Device" is recovered ? - Vector files = getStorageManager().getFolderContent(mFile/*, false*/); + Vector files = getStorageManager().getFolderContent(mFile, false); List> data = new LinkedList>(); for (OCFile f : files) { HashMap h = new HashMap(); @@@ -605,8 -607,13 +605,12 @@@ 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 { - dismissLoadingDialog(); try { Toast msg = Toast.makeText(this, ErrorMessageAdapter.getErrorCauseMessage(result, operation, getResources()), @@@ -654,6 -661,7 +658,6 @@@ public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.main_menu, menu); - menu.findItem(R.id.action_upload).setVisible(false); menu.findItem(R.id.action_sort).setVisible(false); menu.findItem(R.id.action_sync_account).setVisible(false); return true;