Revert "Update download every 5% progress to avoid noise"

This reverts commit 18dd3480cf.

When file sizes are big, progress may look stuck
This commit is contained in:
Aayush Gupta
2024-09-11 18:34:29 +05:30
parent 0149753cc5
commit ecfd53b758

View File

@@ -322,9 +322,6 @@ class DownloadWorker @AssistedInject constructor(
this.speed = downloadInfo.speed
this.timeRemaining = bytesRemaining / speed * 1000
}
// Update progress every 5% to avoid noise
if (totalProgress % 5 == 0) {
downloadDao.updateProgress(
download.packageName,
download.progress,
@@ -333,8 +330,6 @@ class DownloadWorker @AssistedInject constructor(
)
notifyStatus(DownloadStatus.DOWNLOADING, NOTIFICATION_ID)
}
totalProgress = progress
}
}