Commit graph

6413 commits

Author SHA1 Message Date
Two-Ai
86b9262a7e
Make DownloadManager the sole entry point for DownloadService (#9140)
* Rename functions for DownloadService internal use

* Call DownloadService.start via DownloadManager

* Inline DownloadService.stop into pauseDownloads

* Inline DownloadService.stop into clearQueue

NotificationReceiver will now also stop the DownloadService when
receiving ACTION_CLEAR_DOWNLOADS.

* Provide DownloadService.isRunning via DownloadManager
2023-02-24 22:07:30 -05:00
arkon
7ec87e76db Migrate TriState usages to TriStateFilter enum 2023-02-24 16:09:47 -05:00
arkon
a0e76d2fd9 Bump dependencies 2023-02-24 16:07:37 -05:00
Ivan Iskandar
ec3ce74af8
TrackDateSelectorScreen: Use M3 date picker (#9138) 2023-02-24 15:22:23 -05:00
Two-Ai
83a4e34095
Remove redundant Downloader isNotification argument (#9139)
DownloadQueue.clear() already sets QUEUE downloads to NOT_DOWNLOADED.
2023-02-24 15:11:51 -05:00
arkon
84a0044d51 Remove some unused resources 2023-02-23 22:42:02 -05:00
arkon
92132c59f5
Migrate source filter sheet to Compose (#9135) 2023-02-23 22:32:40 -05:00
Ivan Iskandar
36ae388332
Bump compose-bom version 2023.02.00-beta02 (#9137) 2023-02-23 22:29:38 -05:00
arkon
bd47eafeec Fix per-category sort/display affecting the wrong category 2023-02-23 13:54:08 -05:00
arkon
9432d2d06a Bump dependencies 2023-02-22 23:09:16 -05:00
Weblate (bot)
664a56ab6c
Translations update from Hosted Weblate (#901)
* Translated using Weblate (Spanish)

Currently translated at 100.0% (252 of 252 strings)

Translation: Aniyomi/aniyomi-strings
Translate-URL: https://hosted.weblate.org/projects/aniyomi/aniyomi-strings/es/

* Translated using Weblate (French)

Currently translated at 96.0% (242 of 252 strings)

Translation: Aniyomi/aniyomi-strings
Translate-URL: https://hosted.weblate.org/projects/aniyomi/aniyomi-strings/fr/

* Translated using Weblate (Indonesian)

Currently translated at 100.0% (252 of 252 strings)

Translation: Aniyomi/aniyomi-strings
Translate-URL: https://hosted.weblate.org/projects/aniyomi/aniyomi-strings/id/

* Translated using Weblate (Korean)

Currently translated at 100.0% (252 of 252 strings)

Translation: Aniyomi/aniyomi-strings
Translate-URL: https://hosted.weblate.org/projects/aniyomi/aniyomi-strings/ko/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (254 of 254 strings)

Translation: Aniyomi/aniyomi-strings
Translate-URL: https://hosted.weblate.org/projects/aniyomi/aniyomi-strings/es/

* Translated using Weblate (German)

Currently translated at 100.0% (254 of 254 strings)

Translation: Aniyomi/aniyomi-strings
Translate-URL: https://hosted.weblate.org/projects/aniyomi/aniyomi-strings/de/

---------

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Co-authored-by: LaQuiche426 <loic.dossantos42630@gmail.com>
Co-authored-by: Cliff Heraldo <123844876+clxf12@users.noreply.github.com>
Co-authored-by: jinu147 <nesqea20@gmail.com>
Co-authored-by: jmir1 <jhmiramon@gmail.com>
2023-02-22 13:11:24 +01:00
jmir1
b88b65a466 revert gradle.properties changes 2023-02-22 09:15:31 +01:00
Two-Ai
fa61c8fe6f
Convert downloadChapter to suspend function (#9127)
1:1 translation from the RxJava implementation, should match the
previous behavior.

Dropped the return value from functions of the form
```
fun foo(t: T, ...): Observable<T>
```
where the Observable produced the original argument `t`.
The caller already has the result if necessary.

While this conversion is not flow-based overall, some sections use
flows to use the flatMapMerge and retryWhen operators.

Removed RetryWithDelay as it was only used here.

Inlined fetchAllImageUrlsFromPageList instead of converting it to a
suspending equivalent. fetchAllImageUrlsFromPageList is no longer
used in the app, but was not removed as it is part of source-api.
(However, it does not seem to be used exposed in extensions-lib or
used in tachiyomi-extensions.)

runBlocking is used as a temporary stop-gap.
2023-02-21 23:02:10 -05:00
arkon
92bd98e45f Consolidate all theme colors to presentation-core module 2023-02-21 22:52:36 -05:00
arkon
fd7c993b0b Move CheckboxState to core module 2023-02-21 22:52:36 -05:00
Two-Ai
779df32e98
Fix download queue page count display bug (#9126)
When restarting a download, the page count would display as 0 until
the first page download completion, after all the existing pages were
rechecked.

To fix, calculate downloadedImages from pages instead of relying on
the downloader to reset and increment the count.
2023-02-21 18:21:00 -05:00
jmir1
43da9dae77 new stable version 2023-02-21 23:12:58 +01:00
jmir1
7973efd531 fix crash in skip intro dialog 2023-02-21 23:11:14 +01:00
arkon
f4e843f114 Fix package names 2023-02-21 15:11:34 -05:00
jmir1
53a23e1b49 fix intro length dialog 2023-02-21 19:38:10 +01:00
arkon
c0e2eb211d Fix occasional crash when opening library settings sheet
See https://stackoverflow.com/questions/47648689/sealed-classs-objects-mysteriously-becoming-null-when-referenced-by-other-compa
2023-02-21 12:25:46 -05:00
jmir1
c88a39324a minor cleanup 2023-02-21 18:20:12 +01:00
arkon
0bd56ab77c Fix height shift when scrolling through themes 2023-02-21 12:04:17 -05:00
Ivan Iskandar
6b03dca5f4
Use Compose Foundation's flow layout (#9123) 2023-02-21 12:04:11 -05:00
Ivan Iskandar
bd7b21337c
Add minLines to comfortable grid item title (#9122) 2023-02-21 11:44:56 -05:00
jmir1
5b17b405ac fix http headers for video player 2023-02-21 17:23:39 +01:00
Quickdesh
74f25ffb6d
Option to remember Volume and Brightness (#904) 2023-02-21 17:21:06 +01:00
Ivan Iskandar
60a3ba5a5c
Use non-stable Compose BOM (#9120) 2023-02-21 10:41:56 -05:00
arkon
7c2eb0b881 [skip ci] add link to FAQ in issue templates 2023-02-21 10:31:31 -05:00
Quickdesh
f0b2dccbfb
Fix browse settings (#906)
Changes
---
- Remove the extra group
- Fix string used for anime toggle
- Swap their positions
2023-02-21 13:35:13 +01:00
Quickdesh
a24d6e99cf
A couple of library changes (#905)
* some library fixes

* some library fixes
2023-02-21 13:35:00 +01:00
Quickdesh
6ced5d04df
fix Migrating Anime (#903) 2023-02-21 13:34:37 +01:00
jmir1
6ab42f805c Merge branch 'weblate/master' 2023-02-21 13:15:10 +01:00
jmir1
fcc23fee2b move aniyomi strings to strings-aniyomi.xml 2023-02-21 13:07:20 +01:00
arkon
93523ef50b Remove dependency injection from core module and data module from presentation-widget module
Includes side effects:
- No longer need to restart app for user agent string change to take effect
- parseAs extension function requires a Json instance in the calling context, which doesn't necessarily need to be the default one provided by Injekt
2023-02-20 19:02:38 -05:00
arkon
10d7349506 Move more components to presentation-core module 2023-02-20 10:12:41 -05:00
arkon
3d7c136320 Avoid crash when loading invalid extension package 2023-02-19 16:44:58 -05:00
arkon
a6d6a5ed87 Merge branch 'patch'
# Conflicts:
#	app/build.gradle.kts
#	app/src/main/java/eu/kanade/presentation/browse/BrowseSourceScreen.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt
2023-02-19 15:31:35 -05:00
arkon
b690de55e5 Release v0.14.5 2023-02-19 15:25:35 -05:00
arkon
83fda20078 Avoid crashes if headers can't be built for usage in WebView
(cherry picked from commit ec49411bee)
2023-02-19 11:52:09 -05:00
arkon
f656a37045 Avoid crashing if getChapterUrl is not implemented
Fixes #9105

(cherry picked from commit ceaf579cb0)
2023-02-19 11:51:53 -05:00
Ivan Iskandar
c58b495433 MainActivity: Avoid navigator-related crash when handling onNewIntent (#9104)
(cherry picked from commit d3dadf71e8)
2023-02-19 11:51:44 -05:00
arkon
242aeb6a68 Avoid crashing if opening browse with unavailable source
(cherry picked from commit 0ef7650c1a)
2023-02-19 11:50:33 -05:00
Two-Ai
d9969cea8a Fix ID type mismatch in MigrateSearchScreenModel (#9090)
`it.id` is the source ID of the source being sorted.
`state.value.manga!!.id` is the manga ID of the selected manga.
`state.value.manga!!.source` is the source ID of the selected manga.

(cherry picked from commit dc2eaf0788)
2023-02-19 11:50:26 -05:00
arkon
d61db5931e Move reader preloading to IO scope
Maybe fixes #8440

(cherry picked from commit e052bdef96)
2023-02-19 11:50:05 -05:00
arkon
0ea3ac9807 Avoid preload download check if chapter is already loaded or loading
Maybe fixes #8953, #9060

(cherry picked from commit d522d6d545)
2023-02-19 11:49:58 -05:00
Ivan Iskandar
f9e43f574f MangaCoverDialog: Disable memory cache (#9066)
(cherry picked from commit 1671a56f42)
2023-02-19 11:49:51 -05:00
arkon
5ef11e61d0 Prioritize finding selected chapter when deduping reader chapters
Fixes #9054

(cherry picked from commit 23432e4405)
2023-02-19 11:49:44 -05:00
Ivan Iskandar
48546c3db4 Scaffold: Fix snackbar bottom inset (#9052)
(cherry picked from commit 34a586ce48)
2023-02-19 11:49:38 -05:00
Ivan Iskandar
4d87ed496c Remove FAB extra padding in DownloadQueueScreen (#9053)
(cherry picked from commit ad762f8303)
2023-02-19 11:49:32 -05:00