X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/1070273dafa6b522a1ff47e4ca796e13f1652265..24a1111aa117f9d825646c23909e39a0d12f43b8:/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java diff --git a/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java b/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java index 7b6142b6..2241f6f6 100644 --- a/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java +++ b/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java @@ -40,10 +40,10 @@ import android.widget.Toast; import com.actionbarsherlock.app.SherlockFragment; import eu.alefzero.owncloud.DisplayUtils; -import eu.alefzero.owncloud.FileDownloader; import eu.alefzero.owncloud.R; import eu.alefzero.owncloud.authenticator.AccountAuthenticator; import eu.alefzero.owncloud.datamodel.OCFile; +import eu.alefzero.owncloud.files.services.FileDownloader; import eu.alefzero.owncloud.utils.OwnCloudVersion; /** @@ -142,6 +142,7 @@ public class FileDetailFragment extends SherlockFragment implements i.putExtra(FileDownloader.EXTRA_ACCOUNT, mIntent.getParcelableExtra(FileDownloader.EXTRA_ACCOUNT)); i.putExtra(FileDownloader.EXTRA_FILE_PATH, mFile.getRemotePath()); + i.putExtra(FileDownloader.EXTRA_FILE_SIZE, mFile.getFileLength()); getActivity().startService(i); } @@ -273,7 +274,7 @@ public class FileDetailFragment extends SherlockFragment implements /** * In ownCloud 3.0.3 and 4.0.0 there is a bug that SabreDAV does not return - * the time time that the file was created. There is a chance that this will + * the time that the file was created. There is a chance that this will * be fixed in future versions. Use this method to check if this version of * ownCloud has this fix. * @return True, if ownCloud the ownCloud version is > 3.0.4 and 4.0.1