Skip to content

Commit

Permalink
File size and downloaded size should be reported as float, not as int…
Browse files Browse the repository at this point in the history
…eger
  • Loading branch information
SimonSimCity committed Jun 2, 2018
1 parent 5570137 commit a5a2860
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ void StartDownloadWatcher ()
*/
public void UpdateFileProperties (ICursor cursor, DownloadFileImplementation downloadFile)
{
downloadFile.TotalBytesWritten = cursor.GetInt (cursor.GetColumnIndex (Android.App.DownloadManager.ColumnBytesDownloadedSoFar));
downloadFile.TotalBytesExpected = cursor.GetInt (cursor.GetColumnIndex (Android.App.DownloadManager.ColumnTotalSizeBytes));
downloadFile.TotalBytesWritten = cursor.GetFloat (cursor.GetColumnIndex (Android.App.DownloadManager.ColumnBytesDownloadedSoFar));
downloadFile.TotalBytesExpected = cursor.GetFloat (cursor.GetColumnIndex (Android.App.DownloadManager.ColumnTotalSizeBytes));

switch ((DownloadStatus)cursor.GetInt (cursor.GetColumnIndex (Android.App.DownloadManager.ColumnStatus))) {
case DownloadStatus.Successful:
Expand Down

0 comments on commit a5a2860

Please sign in to comment.