Commit Graph

17 Commits

Author SHA1 Message Date
Isira Seneviratne
9d942f567f Use ContextCompat.startForegroundService(). 2023-01-18 09:36:50 +05:30
Bnyro
1ce7d6761f Apply review from #2469 2023-01-14 18:17:34 +01:00
Krunal Patel
6c427d3d76 Add concurrent downloads limit with preference setting 2022-12-25 15:33:28 +05:30
Krunal Patel
f5d17ba5bf Retry connection for DEFAULT_RETRY times on SocketTimeoutException 2022-12-25 13:14:32 +05:30
Krunal Patel
b2fa951c09 Use Int.MAX - DownloadItem.id for notifications
Unique notification ids are required which do not conflict with other notifications. So, use ids from max value of Int.
2022-12-21 21:41:47 +05:30
Krunal Patel
4f0f9b7560 Fix notification action, download fragment and resource leak
- Bind service when service started using notification resume action.

- Use `HttpURLConnection` to download file.

- Use progress bar to determine overall progress.
2022-12-21 21:41:37 +05:30
Krunal Patel
887f658af3 Implement new download service with OkHttp
Use custom downloader and remove DownloadManager
2022-12-21 21:39:30 +05:30
Krunal Patel
03a0f9e1fc Add service start method to DownloadHelper
Move download service method to Download helper and start as foreground.
2022-12-21 21:39:29 +05:30
Bnyro
3aca124372 fix updater issues 2022-11-19 16:24:38 +01:00
Bnyro
b1f06d92b3 fix some issues with downloads 2022-11-11 18:39:56 +01:00
Bnyro
7d2eff7488 use enums 2022-11-06 10:11:19 +01:00
Bnyro
b8b3159362 download thumbnail images 2022-10-15 16:29:12 +02:00
Bnyro
500e56e760 add metadata to downloads 2022-10-10 16:58:26 +02:00
GilesMunn
214b90c84d Ktlint formatting. 2022-10-09 14:39:27 +01:00
Bnyro
abdb5e3a85 fix downloads on low sdk 2022-10-07 19:48:55 +02:00
Bnyro
b838e319f5 recognise downloaded audio files 2022-09-10 12:10:45 +02:00
Bnyro
cf46afdc86 cleanup 2022-09-10 11:51:50 +02:00