Buttons in details view are unlocked when after a failed 'refresh' click (due to...
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / fragment / FileDetailFragment.java
index ade8989..60d6340 100644 (file)
@@ -1003,6 +1003,13 @@ public class FileDetailFragment extends SherlockFragment implements
                 msg.show();\r
             }\r
             \r
+            if (mFile.isDown()) {\r
+                setButtonsForDown();\r
+                \r
+            } else {\r
+                setButtonsForRemote();\r
+            }\r
+            \r
         } else {\r
             if (operation.transferWasRequested()) {\r
                 mContainerActivity.onFileStateChanged();    // this is not working; FileDownloader won't do NOTHING at all until this method finishes, so \r