- // Update the file download progress snackbar.
- if (fileSize == -1) { // The file size is unknown.
- // Negatively update the downloaded kilobytes counter.
- downloadedKilobytesCounter = downloadedKilobytesCounter - bufferLength;
-
- publishProgress(downloadedKilobytesCounter);
- } else { // The file size is known.
- // Update the downloaded kilobytes counter.
- downloadedKilobytesCounter = downloadedKilobytesCounter + bufferLength;
+ // Update the downloaded kilobytes counter.
+ downloadedKilobytesCounter = downloadedKilobytesCounter + bufferLength;