refresh menu in the preview of an image
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / activity / FileActivity.java
index f09aded..8797648 100644 (file)
@@ -768,17 +768,6 @@ public class FileActivity extends ActionBarActivity
             t.show();
         }
     }
-    
-    protected void updateFileFromDB(){
-        OCFile file = getFile();
-        if (file != null) {
-            file = getStorageManager().getFileByPath(file.getRemotePath());
-            setFile(file);
-        }
-    }
-
-
-
 
     private void onSynchronizeFileOperationFinish(SynchronizeFileOperation operation,
                                                   RemoteOperationResult result) {
@@ -804,6 +793,15 @@ public class FileActivity extends ActionBarActivity
         }
     }
     
+    protected void updateFileFromDB(){
+        OCFile file = getFile();
+        if (file != null) {
+            file = getStorageManager().getFileByPath(file.getRemotePath());
+            setFile(file);
+        }
+    }
+
+    
     /**
      * Show loading dialog 
      */