Commit graph

255 commits

Author SHA1 Message Date
kapodamy
fc4a892f45 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)
2019-11-26 10:46:31 -03:00
kapodamy
2484698e8b long-term downloads resume
* recovery infrastructure
* bump serialVersionUID of DownloadMission
* misc cleanup in DownloadMission.java
* remove unused/redundant from strings.xml
2019-11-26 10:46:26 -03:00
Igor Nedoboy
ded1b356a1 Translated using Weblate (Russian)
Currently translated at 100.0% (501 of 501 strings)
2019-11-08 23:18:51 +01:00
Igor Nedoboy
8b2294b6d8 Translated using Weblate (Russian)
Currently translated at 100.0% (501 of 501 strings)
2019-11-05 21:47:34 +01:00
Igor Nedoboy
774621902f Translated using Weblate (Russian)
Currently translated at 100.0% (501 of 501 strings)
2019-11-05 13:15:15 +01:00
Igor Nedoboy
0de4c13f49 Translated using Weblate (Russian)
Currently translated at 100.0% (501 of 501 strings)
2019-11-05 09:07:26 +01:00
Igor Nedoboy
a0f24e84fd Translated using Weblate (Russian)
Currently translated at 100.0% (478 of 478 strings)
2019-11-04 17:52:00 +01:00
Igor Nedoboy
c8196380c3 Translated using Weblate (Russian)
Currently translated at 100.0% (478 of 478 strings)
2019-11-02 15:17:36 +01:00
Igor Nedoboy
ea10da27a6 Translated using Weblate (Russian)
Currently translated at 100.0% (478 of 478 strings)
2019-10-29 22:27:46 +01:00
Igor Nedoboy
dbc4270f76 Translated using Weblate (Russian)
Currently translated at 100.0% (478 of 478 strings)
2019-10-29 22:08:55 +01:00
Igor Nedoboy
afa6674002 Translated using Weblate (Russian)
Currently translated at 100.0% (478 of 478 strings)
2019-10-22 03:31:04 +02:00
Igor Nedoboy
887fde7bfe Translated using Weblate (Russian)
Currently translated at 100.0% (478 of 478 strings)
2019-10-19 00:23:12 +02:00
Igor Nedoboy
27a3d49b6e Translated using Weblate (Russian)
Currently translated at 100.0% (478 of 478 strings)
2019-10-19 00:11:46 +02:00
Igor Nedoboy
4c6caea060 Translated using Weblate (Russian)
Currently translated at 100.0% (478 of 478 strings)
2019-10-19 00:07:21 +02:00
Igor Nedoboy
23d0baa847 Translated using Weblate (Russian)
Currently translated at 100.0% (478 of 478 strings)
2019-10-12 07:08:12 +02:00
Igor Nedoboy
49843309c2 Translated using Weblate (Russian)
Currently translated at 100.0% (478 of 478 strings)
2019-10-11 16:00:18 +02:00
winqooq
b5c1cc4842 Translated using Weblate (Russian)
Currently translated at 100.0% (477 of 477 strings)
2019-09-28 16:55:48 +02:00
Igor Nedoboy
6e5d2f3042 Translated using Weblate (Russian)
Currently translated at 100.0% (477 of 477 strings)
2019-09-25 14:14:35 +02:00
Igor Nedoboy
5cb53f0ead Translated using Weblate (Russian)
Currently translated at 100.0% (477 of 477 strings)
2019-09-14 21:23:54 +02:00
Igor Nedoboy
3832505efb Translated using Weblate (Russian)
Currently translated at 100.0% (476 of 476 strings)
2019-09-07 03:24:22 +02:00
dimqua
0b1117cfbc Translated using Weblate (Russian)
Currently translated at 100.0% (476 of 476 strings)
2019-09-02 19:39:06 +02:00
Igor Nedoboy
7c77c549c8 Translated using Weblate (Russian)
Currently translated at 100.0% (476 of 476 strings)
2019-09-02 19:39:06 +02:00
Andrey mm
288ce0d064 Translated using Weblate (Russian)
Currently translated at 100.0% (476 of 476 strings)
2019-09-02 19:36:10 +02:00
Igor Nedoboy
1662cd5b31 Translated using Weblate (Russian)
Currently translated at 100.0% (476 of 476 strings)
2019-09-02 19:36:02 +02:00
Igor Nedoboy
c17fa13200 Translated using Weblate (Russian)
Currently translated at 100.0% (476 of 476 strings)
2019-09-02 13:38:44 +02:00
Igor Nedoboy
98404d8963 Translated using Weblate (Russian)
Currently translated at 100.0% (476 of 476 strings)
2019-09-02 13:33:29 +02:00
Igor Nedoboy
8bb909dc24 Translated using Weblate (Russian)
Currently translated at 100.0% (476 of 476 strings)
2019-09-02 13:21:31 +02:00
Igor Nedoboy
0e133c2134 Translated using Weblate (Russian)
Currently translated at 100.0% (476 of 476 strings)
2019-09-02 00:34:08 +02:00
Igor Nedoboy
4c5a282d43 Translated using Weblate (Russian)
Currently translated at 100.0% (476 of 476 strings)
2019-09-02 00:23:24 +02:00
Igor Nedoboy
2e57229b1c Translated using Weblate (Russian)
Currently translated at 100.0% (476 of 476 strings)
2019-09-01 23:43:36 +02:00
Igor Nedoboy
4f1ae6e02a Translated using Weblate (Russian)
Currently translated at 100.0% (473 of 473 strings)
2019-08-29 21:23:33 +02:00
Igor Nedoboy
a7c5454d36 Translated using Weblate (Russian)
Currently translated at 100.0% (473 of 473 strings)
2019-08-23 10:05:34 +02:00
TobiGr
c3a584960d Clean up string resources 2019-08-12 17:35:36 +02:00
TobiGr
44cc0e13ae Merge branch 'weblate' into dev 2019-08-12 17:25:10 +02:00
TobiGr
1ab22b66c9 Fix playback position not being deleted on clearing watch history 2019-08-07 14:34:49 +02:00
Igor Nedoboy
bebaf8d8e7 Translated using Weblate (Russian)
Currently translated at 100.0% (451 of 451 strings)
2019-08-02 23:07:42 +02:00
TobiGr
84b7c84fff Merge branch 'weblate' into release_v0.17.0 2019-08-01 01:44:25 +02:00
Igor Nedoboy
2bb1d1a05c Translated using Weblate (Russian)
Currently translated at 100.0% (451 of 451 strings)
2019-07-13 21:00:45 +02:00
Christian Schabesberger
1833580102 Merge branch 'dev' into removeextra 2019-06-26 15:42:47 +02:00
Vasily
ea8bdd8835 Merge branch 'dev' into playback_state_list 2019-06-23 20:23:29 +03:00
Igor Nedoboy
a257497c3e Translated using Weblate (Russian)
Currently translated at 100.0% (451 of 451 strings)
2019-06-05 00:59:48 +02:00
Igor Nedoboy
39f3e21a98 Translated using Weblate (Russian)
Currently translated at 100.0% (451 of 451 strings)
2019-06-05 00:48:25 +02:00
Igor Nedoboy
c285a2595c Translated using Weblate (Russian)
Currently translated at 100.0% (451 of 451 strings)
2019-06-05 00:37:18 +02:00
kapodamy
03d1647479 amend rebase
resolve inconsistency in string.xml files
2019-06-04 15:45:28 -03:00
kapodamy
d9fb7cb420 misc changes
* implement socket timeout error
* use 128k buffer size for copy
* use NewPipe HTTP user agent in the downloads
* automatically recover downloads with network errors that are queued
2019-06-03 18:25:43 -03:00
kapodamy
9656f0486b Webm muxer fixes and strings.xml changes
* replace "In queue" to "Pending" in the downloads header to avoid confusions (all languages)
* use 29bits Clusters size to support huge video resolutions (fixes #2291) (WebmWriter.java)
* add missing changes to WebmMuxer.java (i forget select the audio track)
2019-06-03 18:24:49 -03:00
kapodamy
7ca7952790 Implement Storage Access Framework
* re-work finished mission database
* re-work DownloadMission and bump it Serializable version
* keep the classic Java IO API
* SAF Tree API support on Android Lollipop or higher
* add wrapper for SAF stream opening
* implement Closeable in SharpStream to replace the dispose() method

* do required changes for this API:
** remove any file creation logic from DownloadInitializer
** make PostProcessing Serializable and reduce the number of iterations
** update all strings.xml files
** storage helpers: StoredDirectoryHelper & StoredFileHelper
** best effort to handle any kind of SAF errors/exceptions
2019-06-03 18:16:41 -03:00
Tobias Groza
fa1a8bb81a Merge branch 'weblate' into release_v0.16.2
Update translations
2019-05-26 22:58:53 +02:00
Tolstovka
3e8658457a Translated using Weblate (Russian)
Currently translated at 100.0% (443 of 443 strings)
2019-05-13 10:53:18 +02:00
abvgeej
7304cb7fc0 Translated using Weblate (Russian)
Currently translated at 99.5% (441 of 443 strings)
2019-05-06 14:48:53 +02:00