- outState.putParcelable("ACCOUNT", mAccount);\r
- }\r
-\r
- /**\r
- * This should be called every time the current account changes, in order to synchronize mStorageManager without create a new FileListFragment\r
- */\r
- public void updateAccount() {\r
- Account old = mAccount;\r
- mAccount = AccountUtils.getCurrentOwnCloudAccount(getActivity());\r
- if (old != mAccount)\r
- mStorageManager = new FileDataStorageManager(mAccount, getActivity().getContentResolver());\r
- // dvelasco : a better solution can be provided change the flow between states "wiht account" and "without account", in terms of interactions between AuthenticatorActivity and FileDisplayActivity\r