making file download using progressbar view
[pub/Android/ownCloud.git] / src / eu / alefzero / owncloud / ui / fragment / FileDetailFragment.java
index 7b6142b..2241f6f 100644 (file)
@@ -40,10 +40,10 @@ import android.widget.Toast;
 import com.actionbarsherlock.app.SherlockFragment;\r
 \r
 import eu.alefzero.owncloud.DisplayUtils;\r
-import eu.alefzero.owncloud.FileDownloader;\r
 import eu.alefzero.owncloud.R;\r
 import eu.alefzero.owncloud.authenticator.AccountAuthenticator;\r
 import eu.alefzero.owncloud.datamodel.OCFile;\r
+import eu.alefzero.owncloud.files.services.FileDownloader;\r
 import eu.alefzero.owncloud.utils.OwnCloudVersion;\r
 \r
 /**\r
@@ -142,6 +142,7 @@ public class FileDetailFragment extends SherlockFragment implements
         i.putExtra(FileDownloader.EXTRA_ACCOUNT,\r
                 mIntent.getParcelableExtra(FileDownloader.EXTRA_ACCOUNT));\r
         i.putExtra(FileDownloader.EXTRA_FILE_PATH, mFile.getRemotePath());\r
+        i.putExtra(FileDownloader.EXTRA_FILE_SIZE, mFile.getFileLength());\r
         getActivity().startService(i);\r
     }\r
 \r
@@ -273,7 +274,7 @@ public class FileDetailFragment extends SherlockFragment implements
     \r
     /**\r
      * In ownCloud 3.0.3 and 4.0.0 there is a bug that SabreDAV does not return\r
-     * the time time that the file was created. There is a chance that this will\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.1\r