From: masensio Date: Thu, 30 Apr 2015 16:12:23 +0000 (+0200) Subject: Fix bug: List of files is not the correct one X-Git-Tag: test~20^2~4 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/7d331765096d4cbc2fccbae5ee0a9e33c7f6a62a?hp=--cc Fix bug: List of files is not the correct one --- 7d331765096d4cbc2fccbae5ee0a9e33c7f6a62a diff --git a/src/com/owncloud/android/ui/activity/Uploader.java b/src/com/owncloud/android/ui/activity/Uploader.java index 4033ed5f..9a33620b 100644 --- a/src/com/owncloud/android/ui/activity/Uploader.java +++ b/src/com/owncloud/android/ui/activity/Uploader.java @@ -135,8 +135,14 @@ public class Uploader extends FileActivity mNumCacheFile = savedInstanceState.getInt(KEY_NUM_CACHE_FILE); mRemoteCacheData = savedInstanceState.getStringArrayList(KEY_REMOTE_CACHE_DATA); } + super.onCreate(savedInstanceState); + if (mAccountSelected) { + setAccount((Account) savedInstanceState.getParcelable(FileActivity.EXTRA_ACCOUNT)); + } + + ActionBar actionBar = getSupportActionBar(); actionBar.setIcon(DisplayUtils.getSeasonalIconId()); @@ -183,6 +189,7 @@ public class Uploader extends FileActivity outState.putBoolean(KEY_ACCOUNT_SELECTED, mAccountSelected); outState.putInt(KEY_NUM_CACHE_FILE, mNumCacheFile); outState.putStringArrayList(KEY_REMOTE_CACHE_DATA, mRemoteCacheData); + outState.putParcelable(FileActivity.EXTRA_ACCOUNT, getAccount()); Log_OC.d(TAG, "onSaveInstanceState() end"); } @@ -389,7 +396,7 @@ public class Uploader extends FileActivity actionBar.setHomeButtonEnabled(notRoot); String full_path = generatePath(mParents); - + Log_OC.d(TAG, "Populating view with content of : " + full_path); mFile = getStorageManager().getFileByPath(full_path);