Skip to content

Commit a5a2860

Browse files
committed
File size and downloaded size should be reported as float, not as integer
1 parent 5570137 commit a5a2860

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DownloadManager/Plugin.DownloadManager.Android/DownloadManagerImplementation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ void StartDownloadWatcher ()
160160
*/
161161
public void UpdateFileProperties (ICursor cursor, DownloadFileImplementation downloadFile)
162162
{
163-
downloadFile.TotalBytesWritten = cursor.GetInt (cursor.GetColumnIndex (Android.App.DownloadManager.ColumnBytesDownloadedSoFar));
164-
downloadFile.TotalBytesExpected = cursor.GetInt (cursor.GetColumnIndex (Android.App.DownloadManager.ColumnTotalSizeBytes));
163+
downloadFile.TotalBytesWritten = cursor.GetFloat (cursor.GetColumnIndex (Android.App.DownloadManager.ColumnBytesDownloadedSoFar));
164+
downloadFile.TotalBytesExpected = cursor.GetFloat (cursor.GetColumnIndex (Android.App.DownloadManager.ColumnTotalSizeBytes));
165165

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

0 commit comments

Comments
 (0)