Gabriele M
1e89ff8f8d
Don't assume we always know the final size of the files
2017-07-04 19:05:04 +02:00
Gabriele M
653b577d61
Keep track of the number of updates being verified
2017-07-04 19:05:04 +02:00
Gabriele M
e7923a3d56
Keep track of the number of active downloads
2017-07-04 19:05:04 +02:00
Gabriele M
f0940dafca
Verify package when resuming a completed download
...
It's possible to resume already completed downloads. When this
happens, starts verifying the package. Otherwise we won't be
able to resume the download since the server will likely reply
with 416.
2017-07-04 19:05:04 +02:00
Gabriele M
c4c5a72c75
Perform some database operations in separate threads
...
These operations shouldn't be frequent enough to require explicit
synchronization.
2017-07-04 19:05:04 +02:00
Gabriele M
fe18add111
Verify downloads in a separate thread
2017-07-04 19:05:04 +02:00
Gabriele M
c13d79b39c
Use a Thread instead of an AsyncTask to delete downloads
2017-07-04 19:05:04 +02:00
Gabriele M
520105284c
Rename some constants
2017-07-04 19:05:04 +02:00
Gabriele M
db3f14832a
Replace 'Download' prefix with 'Updater'
...
These classes do more than controlling the download of the updates.
2017-07-04 19:05:04 +02:00