Commit graph

2195 commits

Author SHA1 Message Date
AntsyLich
04f0ca7846
Use sqldelight for direct db calls in MangaPresenter (#7366) 2022-06-26 15:54:34 -04:00
jobobby04
61a44101a2
Fix clicking cover opening random manga (#7387) 2022-06-26 15:49:52 -04:00
Ivan Iskandar
924dfa19cf
MangaScreen: Fix action mode download button not working (#7385) 2022-06-26 13:37:41 -04:00
Osyx
ad106bd884
Add new "Lavender" theme (#7343)
* Add new "Lavender" theme

* Add light theme values for Lavender theme

* Fix order of enums

* Fix accented UI elements in set categories sheet being different colors

Co-authored-by: CrepeTF <trungnguyen02@outlookcom>
2022-06-26 10:01:31 -04:00
Ivan Iskandar
0e0c1dcdc5
MangaPresenter: Fix state updates when opening a new manga entry (#7379) 2022-06-26 09:45:06 -04:00
arkon
3ca1ce4636 Use primary color for excluded tristate filter icon (fixes #7360) 2022-06-25 22:34:48 -04:00
Ivan Iskandar
33a778873a
MangaController overhaul (#7244) 2022-06-25 11:03:48 -04:00
Ivan Iskandar
a77bce7b37
ChapterDownloadView: Convert to compose (#7354) 2022-06-24 15:42:30 -04:00
arkon
915e38f636 Fix crashes from KTX extension changes 2022-06-24 12:06:43 -04:00
AntsyLich
e3b1053c03
Use sqldelight in migration (#7331)
* Use sqldelight in migration

* Some more changes

Co-Authored-By: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>

* Review Changes

* Review changes 2

* Review Changes 3

* Review Changes 4

Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
2022-06-21 17:27:55 -04:00
Taco
c2520bff12
Utilize more KTX extensions (#7348) 2022-06-20 22:54:42 -04:00
arkon
254f021903 Minor cleanup 2022-06-20 22:51:04 -04:00
Ivan Iskandar
8fedd2d5f1
Convert cover dialog view to compose (#7346) 2022-06-20 22:31:36 -04:00
arkon
cb1830d747 More minor refactorings
Extracted from #7244

Co-authored-by: ivaniskandar <ivaniskandar@users.noreply.github.com>
2022-06-19 17:32:31 -04:00
arkon
a7decdb62d Migrate some categories SQL calls to SQLDelight 2022-06-19 16:38:42 -04:00
Ivan Iskandar
005b9b595c
ChaptersSettingsSheet: Single source of truth and use new manga class (#7342)
Currently breaks initial settings state until the source of truth is
properly updated.
2022-06-19 12:29:49 -04:00
arkon
9f66c85281 Migrate duplicate manga check to SQLDelight
Extracted from #7244

Co-authored-by: ivaniskandar <ivaniskandar@users.noreply.github.com>
2022-06-19 10:15:24 -04:00
Ivan Iskandar
28e7009b49
Convert edit cover function to suspend function (#7330) 2022-06-18 10:01:03 -04:00
Ivan Iskandar
ae88252cb1
MangaController: Change the workaround for title alpha (#7277)
Now checks for the backstack for any dialog controller when a push exit occurs
before restoring the title alpha.
2022-06-17 17:28:50 -04:00
Ivan Iskandar
3c3d787a2b
MainActivity: Fix incorrect UI states when activity recreated with dialog controller (#7325) 2022-06-17 17:28:07 -04:00
jmir1
6aee4fc464
Fix freezing on migrating manga (#7317)
* Use `supend` instead of `runBlocking` in migrate function

* lift `syncChaptersWithSource` out of the db trasaction
2022-06-16 23:34:44 -04:00
Ivan Iskandar
4ef337f1e9
Don't set text colors when creating compose theme (#7316)
This avoids compose snackbar text color issue
2022-06-16 11:37:57 -04:00
Andreas
017f6b22f0
Use SQLDelight on Category screen (#7310)
* Use SQLDelight on Category screen

* Include category name in DuplicateNameException
2022-06-16 10:59:10 -04:00
arkon
d2f4c43526 Minor cleanup 2022-06-14 22:31:39 -04:00
AntsyLich
9d5b7de1d8
Maintain source info in the database. (#6389)
* Maintain Source Info in database

* Review changes and cleanups

* Review changes 2

* Review Changes 3
2022-06-14 09:10:40 -04:00
arkon
5ccde61ae1 Minor cleanup 2022-06-12 11:29:48 -04:00
AntsyLich
b96686e6ad
Fix chapter list live update (#7296) 2022-06-12 11:23:41 -04:00
nicki
e7695aef78
Fix Links to Changelog/Readme/Commits for multisrc (#7252)
* Fix Links to Changelog/Readme/Commits for `multisrc`

working basic fix. Needs to be refactored into `createUrl()`

* Refactor back into `createUrl`

hopefully the logic is understandable
there's three cases:
 - when multisrc, if `path` isn't mentioned, then we're trying to open
   commmit history
 - when multisrc, if `path` is mentioned, then its either a changelog or
   a readme to a multisrc extension, the files are stored in the
   `overrides` subfolder
 - when not multisrc, we're looking at a single source where the links
   are constructed in the same way regardless of it being
   changelog/readme/commit history
2022-06-12 10:24:39 -04:00
AntsyLich
120943a8b3
Make syncChaptersWithSource use sqldelight (#7263)
* Make `syncChaptersWithSource` use sqldelight

Will break chapter list live update on current ui

Co-Authored-By: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>

* Review Changes

Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
2022-06-11 11:38:39 -04:00
arkon
e15a867106 Convert clear database queries to SQLDelight 2022-06-10 21:33:56 -04:00
Ivan Iskandar
59837bbb90
Change cover memory key (#7276)
Use different key for custom cover and add last modified time for updating
cover without clearing the whole memory cache
2022-06-10 09:33:59 -04:00
arkon
cf48bbc176 Minor cleanup
Fixing some things that were errors when compiling against SDK 33.
2022-06-09 23:04:40 -04:00
kasperskier
18ea6c4f65
Add more DoH providers (#7256)
* Add more DoH providers

* Fix IPs
2022-06-07 17:58:58 -04:00
arkon
7fdbf40cd2 Minor cleanups
Pulling out some of the smaller changes that aren't related to the manga controller changes in #7244
2022-06-04 16:01:49 -04:00
Saud-97
5ea03fad87
New: Migrating titles maintains custom covers (#7196)
* New: Migrating titles maintains custom covers #7189

* Added Custom Covers to MigrationFlags.kt, strings.xml

* Reworded covers --> cover

* Updated logic to show/hide Migration flags titles depending on manga.
2022-06-04 12:52:35 -04:00
Andreas
4560033e66
feat: add read last read chapter shortcut (#7230)
Supersedes #6861

Co-authored-by: Pierre-Monier <65488471+Pierre-Monier@users.noreply.github.com>

Co-authored-by: Pierre-Monier <65488471+Pierre-Monier@users.noreply.github.com>
2022-05-31 22:55:58 -04:00
arkon
d1be221d7a Remove logic for restoring legacy JSON backups
- Protobuf backups have been around for 1.5 years now
- The ability to restore online-dependant data from JSON backups gets harder as time goes on and sources drift
- If users really need a way to restore them, they can use an older version of the app, or a separate tool for translating between the formats could be created
2022-05-29 12:24:39 -04:00
arkon
3c40010aff Minor cleanups 2022-05-28 09:12:15 -04:00
Chris
63238b388d
Fix global update ignoring network constraint (#7188)
* update library update network constraint logic

* add explicit 'only on unmetered network' update constraint
2022-05-28 09:09:53 -04:00
AntsyLich
809da49301
Reader: Save reading progress with SQLDelight (#7185)
* Use SQLDelight in reader to update history

* Move chapter progress to sqldelight

* Review Changes

Co-Authored-By: inorichi <len@kanade.eu>

* Review Changes 2

Co-authored-by: FourTOne5 <59261191+FourTOne5@users.noreply.github.com>
Co-authored-by: inorichi <len@kanade.eu>
2022-05-28 09:09:27 -04:00
FourTOne5
ad17eb1386
Local Source - qol, cleanup and cover related fixes (#7166)
* Local Source - qol, cleanup and cover related fixes

* Review Changes
2022-05-24 18:02:02 -04:00
Andreas
0c631a4990
Add MangaUpdates as a tracker (#7170)
* Add MangaUpdates as a tracker

- jobobby04 co-authored for suggestion in BackupTracking.kt

Co-authored-by: jobobby04 <jobobby04@users.noreply.github.com>

* Changes from code review

Co-authored-by: arkon <arkon@users.noreply.github.com>

Co-authored-by: jobobby04 <jobobby04@users.noreply.github.com>
Co-authored-by: arkon <arkon@users.noreply.github.com>
2022-05-24 18:00:33 -04:00
arkon
9b0d85bf6c Migrate settings search view to Compose 2022-05-23 18:33:46 -04:00
arkon
9a75232ca4 Minor cleanup 2022-05-19 17:43:27 -04:00
FourTOne5
fd9510e18f
Migrate extensions language filter screen to compose (#7169) 2022-05-19 17:29:40 -04:00
CVIUS
bbb69482e1
Add ability to show manga when clicking item in migration search process (#7134) 2022-05-18 22:35:27 -04:00
CVIUS
6580f5771f
Fix reader menu appearing then disappearing in webtoon viewer when there is no next chapter (#7115) 2022-05-17 17:20:37 -04:00
CVIUS
b21bcc2d45
Fix webtoon viewer showing transition view when going to next/prev chapter using next/prev button (#7133) 2022-05-17 17:20:18 -04:00
arkon
01e04e31bf Theme Compose SwipeRefresh indicator like XML version
Also rename some screens/controllers to better represent that they're the list views.
2022-05-16 23:08:04 -04:00
arkon
9f42306f79 Minor cleanup 2022-05-15 17:03:57 -04:00