From: masensio Date: Tue, 17 Mar 2015 13:53:18 +0000 (+0100) Subject: Fix bug: Files/folders shown are not the correct when upload a file from other app... X-Git-Tag: oc-android-1.7.1_signed^2~9^2~7 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/e230ce33f7073672565144f880f001d9354ac916 Fix bug: Files/folders shown are not the correct when upload a file from other app and rotate the device --- diff --git a/src/com/owncloud/android/ui/activity/Uploader.java b/src/com/owncloud/android/ui/activity/Uploader.java index b6c8a236..edd2f5db 100644 --- a/src/com/owncloud/android/ui/activity/Uploader.java +++ b/src/com/owncloud/android/ui/activity/Uploader.java @@ -133,8 +133,10 @@ public class Uploader extends FileActivity Log_OC.i(TAG, "More than one ownCloud is available"); showDialog(DIALOG_MULTIPLE_ACCOUNT); } else { - mAccount = accounts[0]; - mStorageManager = new FileDataStorageManager(mAccount, getContentResolver()); + if (savedInstanceState == null) { + mAccount = accounts[0]; + mStorageManager = new FileDataStorageManager(mAccount, getContentResolver()); + } initTargetFolder(); populateDirectoryList();