code cleanup
* migrate few annotations to androidx * mission recovery: better error handling (except StreamExtractor.getErrorMessage() method always returns an error) * post-processing: more detailed progress [file specific changes] DownloadMission.java * remove redundant/boilerplate code (again) * make few variables volatile * better file "length" approximation * use "done" variable to count the amount of bytes downloaded (simplify percent calc in UI code) Postprocessing.java * if case of error use "ERROR_POSTPROCESSING" instead of "ERROR_UNKNOWN_EXCEPTION" * simplify source stream init DownloadManager.java * move all "service message sending" code to DownloadMission * remove not implemented method "notifyUserPendingDownloads()" also his unused strings DownloadManagerService.java * use START_STICKY instead of START_NOT_STICKY * simplify addMissionEventListener()/removeMissionEventListener() methods (always are called from the main thread) Deleter.java * better method definition MissionAdapter.java * better method definition * code cleanup * the UI is now refreshed every 750ms * simplify download progress calculation * indicates if the download is actually recovering * smooth download speed measure * show estimated remain time MainFragment.java: * check if viewPager is null (issued by "Apply changes" feature of Android Studio)
This commit is contained in:
parent
844f80a5f1
commit
f62a7919a5
53 changed files with 554 additions and 622 deletions
|
|
@ -457,7 +457,6 @@
|
|||
<string name="error_http_not_found">Non trovato</string>
|
||||
<string name="error_postprocessing_failed">Post-processing fallito</string>
|
||||
<string name="clear_finished_download">Pulisci i download completati</string>
|
||||
<string name="msg_pending_downloads">Continua i %s trasferimenti in corso dai Download</string>
|
||||
<string name="stop">Ferma</string>
|
||||
<string name="max_retry_msg">Tentativi massimi</string>
|
||||
<string name="max_retry_desc">Tentativi massimi prima di cancellare il download</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue