Browse Source

Fix bug: Files/folders shown are not the correct when upload a file from other app and rotate the device

masensio 10 years ago
parent
commit
e230ce33f7
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/com/owncloud/android/ui/activity/Uploader.java

+ 4 - 2
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();