Disable extra logs
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / fragment / FileDetailFragment.java
index 50faf04..dc8c9f6 100644 (file)
@@ -256,12 +256,15 @@ public class FileDetailFragment extends FileFragment implements
         // Send file
         item = menu.findItem(R.id.action_send_file);
         boolean sendEnabled = getString(R.string.send_files_to_other_apps).equalsIgnoreCase("on");
-        if (item != null  && sendEnabled) {
-            item.setVisible(true);
-            item.setEnabled(true);
-        } else {
-            item.setVisible(false);
-            item.setEnabled(false);
+        if (item != null) {
+            if (sendEnabled) {
+                item.setVisible(true);
+                item.setEnabled(true);
+            } else {
+                item.setVisible(false);
+                item.setEnabled(false);
+                
+            }
         }
     }
 
@@ -391,7 +394,6 @@ public class FileDetailFragment extends FileFragment implements
                 FileDisplayActivity activity = (FileDisplayActivity) getSherlockActivity();
                 // Obtain the file
                 if (!getFile().isDown()) {  // Download the file                    
-                    //activity.showLoadingDialog();
                     Log_OC.d(TAG, getFile().getRemotePath() + " : File must be downloaded");
                     activity.startDownloadForSending(getFile());