dont show creation date until its fixed
authorBartek Przybylski <bart.p.pl@gmail.com>
Mon, 2 Jul 2012 16:07:28 +0000 (18:07 +0200)
committerBartek Przybylski <bart.p.pl@gmail.com>
Mon, 2 Jul 2012 16:07:28 +0000 (18:07 +0200)
src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java

index c9863ca..1ab9284 100644 (file)
@@ -345,11 +345,11 @@ public class FileDetailFragment extends SherlockFragment implements
     }\r
     \r
     /**\r
     }\r
     \r
     /**\r
-     * In ownCloud 3.0.3 and 4.0.0 there is a bug that SabreDAV does not return\r
+     * In ownCloud 3.X.X and 4.X.X there is a bug that SabreDAV does not return\r
      * the time that the file was created. There is a chance that this will\r
      * be fixed in future versions. Use this method to check if this version of\r
      * ownCloud has this fix.\r
      * the time that the file was created. There is a chance that this will\r
      * be fixed in future versions. Use this method to check if this version of\r
      * ownCloud has this fix.\r
-     * @return True, if ownCloud the ownCloud version is > 3.0.4 and 4.0.4\r
+     * @return True, if ownCloud the ownCloud version is supporting creationg time\r
      */\r
     private boolean ocVersionSupportsTimeCreated(){\r
         if(mIntent != null){\r
      */\r
     private boolean ocVersionSupportsTimeCreated(){\r
         if(mIntent != null){\r
@@ -358,7 +358,7 @@ public class FileDetailFragment extends SherlockFragment implements
                 AccountManager accManager = (AccountManager) getActivity().getSystemService(Context.ACCOUNT_SERVICE);\r
                 OwnCloudVersion ocVersion = new OwnCloudVersion(accManager\r
                         .getUserData(ocAccount, AccountAuthenticator.KEY_OC_VERSION));\r
                 AccountManager accManager = (AccountManager) getActivity().getSystemService(Context.ACCOUNT_SERVICE);\r
                 OwnCloudVersion ocVersion = new OwnCloudVersion(accManager\r
                         .getUserData(ocAccount, AccountAuthenticator.KEY_OC_VERSION));\r
-                if(ocVersion.compareTo(new OwnCloudVersion(0x030004)) >= 0 || ocVersion.compareTo(new OwnCloudVersion(0x040004)) >= 0){\r
+                if(ocVersion.compareTo(new OwnCloudVersion(0x030000)) < 0) {\r
                     return true;\r
                 }\r
             }\r
                     return true;\r
                 }\r
             }\r