Reset speed and ETA when pausing downloads

This commit is contained in:
Gabriele M
2017-07-15 02:09:32 +02:00
parent c7f4c48a67
commit 40f15b1fb3

View File

@@ -417,6 +417,8 @@ public class UpdaterController implements UpdaterControllerInt {
entry.mDownloadClient.cancel();
removeDownloadClient(entry);
entry.mUpdate.setStatus(UpdateStatus.PAUSED);
entry.mUpdate.setEta(0);
entry.mUpdate.setSpeed(0);
notifyUpdateChange(downloadId);
return true;
}