mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
Merge pull request #963 from owncloud/fix_account_not_changed_after_rotation
FileActivity does not need to 'remember' the current account in configur...
This commit is contained in:
commit
03912b8335
1 changed files with 1 additions and 3 deletions
|
@ -136,9 +136,8 @@ public class FileActivity extends SherlockFragmentActivity
|
|||
super.onCreate(savedInstanceState);
|
||||
mHandler = new Handler();
|
||||
mFileOperationsHelper = new FileOperationsHelper(this);
|
||||
Account account;
|
||||
Account account = null;
|
||||
if(savedInstanceState != null) {
|
||||
account = savedInstanceState.getParcelable(FileActivity.EXTRA_ACCOUNT);
|
||||
mFile = savedInstanceState.getParcelable(FileActivity.EXTRA_FILE);
|
||||
mFromNotification = savedInstanceState.getBoolean(FileActivity.EXTRA_FROM_NOTIFICATION);
|
||||
mFileOperationsHelper.setOpIdWaitingFor(
|
||||
|
@ -325,7 +324,6 @@ public class FileActivity extends SherlockFragmentActivity
|
|||
protected void onSaveInstanceState(Bundle outState) {
|
||||
super.onSaveInstanceState(outState);
|
||||
outState.putParcelable(FileActivity.EXTRA_FILE, mFile);
|
||||
outState.putParcelable(FileActivity.EXTRA_ACCOUNT, mAccount);
|
||||
outState.putBoolean(FileActivity.EXTRA_FROM_NOTIFICATION, mFromNotification);
|
||||
outState.putLong(KEY_WAITING_FOR_OP_ID, mFileOperationsHelper.getOpIdWaitingFor());
|
||||
outState.putBoolean(KEY_TRY_SHARE_AGAIN, mTryShareAgain);
|
||||
|
|
Loading…
Reference in a new issue