NewPipe/app/src/main/java/org/schabi/newpipe
kapodamy e6d9d8e26d 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
..
about Migrate to AndroidX 2019-10-04 14:59:08 +02:00
database Migrate to AndroidX 2019-10-04 14:59:08 +02:00
download update DownloadDialog.java 2019-11-26 10:46:29 -03:00
fragments code cleanup 2019-11-26 10:46:31 -03:00
info_list Show parsed relative times instead of whatever the service gives us 2019-11-17 23:58:55 -03:00
local Migrate to AndroidX 2019-10-04 14:59:08 +02:00
player Fix popup player gestures 2019-11-22 11:41:10 +01:00
report Migrate to AndroidX 2019-10-04 14:59:08 +02:00
settings Make the KioskFragment aware of changes in the preferred content country 2019-11-20 00:23:35 -03:00
streams code cleanup 2019-11-26 10:46:31 -03:00
util Show parsed relative times instead of whatever the service gives us 2019-11-17 23:58:55 -03:00
views Migrate to AndroidX 2019-10-04 14:59:08 +02:00
ActivityCommunicator.java Update extractor and refactored NewPipe 2017-09-03 13:57:12 -03:00
App.java Show parsed relative times instead of whatever the service gives us 2019-11-17 23:58:55 -03:00
BaseFragment.java Enable toolbar title visibility when setting a new one 2019-11-20 00:23:33 -03:00
CheckForNewAppVersionTask.java Migrate to AndroidX 2019-10-04 14:59:08 +02:00
DownloaderImpl.java Use new Localization and Downloader implementations from extractor 2019-11-17 23:58:52 -03:00
ExitActivity.java Update extractor and refactored NewPipe 2017-09-03 13:57:12 -03:00
ImageDownloader.java Use new Localization and Downloader implementations from extractor 2019-11-17 23:58:52 -03:00
MainActivity.java fix NPE, fix 'wrong' constant, avoid unnecessary nulling 2019-10-08 06:36:29 +02:00
NewPipeDatabase.java Migrate to AndroidX 2019-10-04 14:59:08 +02:00
PanicResponderActivity.java Update extractor and refactored NewPipe 2017-09-03 13:57:12 -03:00
ReCaptchaActivity.java Use new Localization and Downloader implementations from extractor 2019-11-17 23:58:52 -03:00
RouterActivity.java Migrate to AndroidX 2019-10-04 14:59:08 +02:00