Additional changes to apply the new code to the other FileFragments: PreviewMediaFrag...
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / fragment / FileDetailFragment.java
index 33fef5e..7995797 100644 (file)
@@ -1,6 +1,6 @@
 /* ownCloud Android client application
  *   Copyright (C) 2011  Bartek Przybylski
- *   Copyright (C) 2012-2013 ownCloud Inc.
+ *   Copyright (C) 2012-2014 ownCloud Inc.
  *
  *   This program is free software: you can redistribute it and/or modify
  *   it under the terms of the GNU General Public License version 2,
@@ -182,13 +182,14 @@ public class FileDetailFragment extends FileFragment implements
     @Override
     public void onActivityCreated(Bundle savedInstanceState) {
         super.onActivityCreated(savedInstanceState);
-        if (mAccount != null) {
-            OCFile file = ((FileActivity)getActivity()).getStorageManager().
-                    getFileByPath(getFile().getRemotePath());
-            if (file != null) {
-                setFile(file);
-            }
-        }
+        // TODO: Remove this code. (Updated no needed)
+//        if (mAccount != null) {
+//            OCFile file = ((FileActivity)getActivity()).getStorageManager().
+//                    getFileByPath(getFile().getRemotePath());
+//            if (file != null) {
+//                setFile(file);
+//            }
+//        }
     }