Reset speed and ETA when pausing downloads
This commit is contained in:
@@ -417,6 +417,8 @@ public class UpdaterController implements UpdaterControllerInt {
|
|||||||
entry.mDownloadClient.cancel();
|
entry.mDownloadClient.cancel();
|
||||||
removeDownloadClient(entry);
|
removeDownloadClient(entry);
|
||||||
entry.mUpdate.setStatus(UpdateStatus.PAUSED);
|
entry.mUpdate.setStatus(UpdateStatus.PAUSED);
|
||||||
|
entry.mUpdate.setEta(0);
|
||||||
|
entry.mUpdate.setSpeed(0);
|
||||||
notifyUpdateChange(downloadId);
|
notifyUpdateChange(downloadId);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user