- // TODO: Remove this code. (Updated no needed)
-// if (mAccount != null) {
-// OCFile file = mContainerActivity.getStorageManager().
-// getFileByPath(getFile().getRemotePath());
-// if (file != null) {
-// setFile(file);
-// }
-// }
+ if (mAccount != null) {
+ OCFile file = ((FileActivity)getActivity()).getStorageManager().
+ getFileByPath(getFile().getRemotePath());
+ if (file != null) {
+ setFile(file);
+ }
+ }