Commit graph

6864 commits

Author SHA1 Message Date
Secozzi
dd17832428
Add stable marker to Manga data class
Co-authored-by: ivan <12537387+ivaniskandar@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-10-28 11:57:58 +01:00
Secozzi
2abb7be491
Collect MangaScreen state with lifecycle
Co-authored-by: ivan <12537387+ivaniskandar@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-10-28 11:44:25 +01:00
Secozzi
10882a5f84
PagerPageHolder: lazy init loading indicator
Co-authored-by: ivan <12537387+ivaniskandar@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-10-28 11:39:23 +01:00
Secozzi
c27bf3f6b1
Remove legacy broken source and history backup
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-10-28 11:33:19 +01:00
Secozzi
a3da190a23
Hide keyboard when a Tracker SearchResultItem is clicked
* Hide keyboard on select

* Code Review Suggestion

Co-authored-by: Roshan Varughese <40583749+Animeboynz@users.noreply.github.com>
2024-10-28 11:25:30 +01:00
Secozzi
d694c7e4d4
Add "show entry" action to download notifications (#1159)
* Add 'show entry' to download notifications

Signed-off-by: Catting <5874051+mm12@users.noreply.github.com>

* fixup! Add 'show entry' to download notifications

Signed-off-by: Catting <5874051+mm12@users.noreply.github.com>

* fixup! Add 'show entry' to download notifications

Signed-off-by: Catting <5874051+mm12@users.noreply.github.com>

* spotless! Add 'show entry' to download notifications

Signed-off-by: Catting <5874051+mm12@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>

* fixup! spotless- Apply suggestions from code review

Signed-off-by: Catting <5874051+mm12@users.noreply.github.com>

---------

Signed-off-by: Catting <5874051+mm12@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-10-28 11:22:18 +01:00
Secozzi
e9891c25aa
Add confirmation when adding repo via URI
* Add confirmation when adding repo via URI

* Blank lines

* Suggestions

* Reverting Changes

* Removing Unused Imports

Co-authored-by: Roshan Varughese <40583749+Animeboynz@users.noreply.github.com>
2024-10-28 11:09:28 +01:00
Secozzi
c275d0909d
Respect privacy settings in extension update notification
* Hide Extension Names in Update Notifications when Content is Hidden

* Moving `val` inside if

* [skip ci] Update CHANGELOG.md

Co-authored-by: Roshan Varughese <40583749+Animeboynz@users.noreply.github.com>
2024-10-28 11:03:31 +01:00
Secozzi
8937e92b53
Add option to skip downloading duplicate read chapters
* Add query to get chapter count by manga and chapter number

* Add functions to get chapter count by manga and chapter number

* Only count read chapters

* Add interactor

* Savepoint

* Extract new chapter logic to separate function

* Update javadocs

* Add preference to toggle new functionality

* Add todo

* Add debug logcat

* Use string resource instead of hardcoding title

* Add temporary logcat for debugging

* Fix detekt issues

* Update javadocs

* Update download unread chapters preference

* Remove debug logcat calls

* Update javadocs

* Resolve issue where read chapters were still being downloaded during manual manga fetch

* Apply code review changes

* Apply code review changes

* Revert "Apply code review changes"

This reverts commit 1a2dce7.

* Revert "Apply code review changes"

This reverts commit ac2a778.

* Group download chapter logic inside the interactor GetChaptersToDownload

* Update javadocs

* Apply code review

* Apply code review

* Apply code review

* Update CHANGELOG.md to include the new feature

* Run spotless

* Update domain/src/main/java/mihon/domain/chapter/interactor/FilterChaptersForDownload.kt

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Dani <17619547+shabnix@users.noreply.github.com>
2024-10-28 10:52:51 +01:00
Secozzi
11f30c885d
Fix lint errors 2024-10-28 10:51:57 +01:00
Secozzi
1cae533d65
Address spotless lint errors 2024-10-27 21:36:32 +01:00
Secozzi
324a4850a3
Remove more detekt annotations 2024-10-27 10:52:26 +01:00
AntsyLich
aeb17fa859
Remove detekt (#1130)
Annoying. More annoying in this project.

(cherry picked from commit 777ae2461e1eb277a3aa0c998ff69e4f100387a1)
2024-10-27 10:38:00 +01:00
FooIbar
fa3966151e
Add comment about RecyclerView cache size (#1119)
Note for forks: Increasing cache size may cause OOM on API < 26, better
to make it API 26+ only.

(cherry picked from commit 1c47a6b9b35c622200c731cdbbc076f5263e8d06)
2024-10-27 10:30:03 +01:00
AntsyLich
c2945c3e62
Sync compose theme with MDC theme
(cherry picked from commit 9a34ace09c66274e6c2b3f9446058a0fa99d4bd0)
2024-10-27 10:28:23 +01:00
Secozzi
3da7fbb281
Fix some migrations never running
Both `SetupBackupCreateMigration` and `SetupLibraryUpdateMigration` were
trying to get the `App` class from Injekt which is never provided via
the `AppModule`. Using `Application` instead works since the
`workManager` property used by the respective `setupTask` functions is
an extension property on `Context`.

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
2024-10-27 10:27:04 +01:00
AntsyLich
0cf8a7cdfe
Handle Android SDK 35 API collision
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-10-27 09:31:18 +01:00
Catting
b2e91517e7
Add an "open in browser" button to reader menu (#1110)
* Add an "open in browser" button to reader menu

Signed-off-by: Catting <5874051+mm12@users.noreply.github.com>

* fixup! Add an "open in browser" button to reader menu

Signed-off-by: Catting <5874051+mm12@users.noreply.github.com>

---------

Signed-off-by: Catting <5874051+mm12@users.noreply.github.com>
(cherry picked from commit c5994e057b37484fec3a5300491946afe377a90a)
2024-10-27 09:29:39 +01:00
AntsyLich
e40b81b077
Fix UI freeze after migration
Fixes #938

(cherry picked from commit 3f1d28c3833e6b868152149ed02b3fb8c54eccef)
2024-10-27 09:29:18 +01:00
AntsyLich
364fbc5161
Add a button to select all scanlators
Resolves #943
Closes #1109

(cherry picked from commit 84b2164787a795f3fd757c325cbfb6ef660ac3a3)
2024-10-27 09:27:13 +01:00
Secozzi
8c75d6ccba
Add Copy Tracker URL on icon long press
* Add Copy Tracker URL on icon long press

Signed-off-by: Catt0s <5874051+mm12@users.noreply.github.com>

* Add 'Copy To Clipboard' to tracker item menu

Signed-off-by: Catt0s <5874051+mm12@users.noreply.github.com>

* Add 'Copy link' to locales.

Signed-off-by: Catt0s <5874051+mm12@users.noreply.github.com>

* Implement code review suggestions
>
> Co-authored-by: AntsyLich  <59261191+AntsyLich@users.noreply.github.com>

Signed-off-by: Catt0s <5874051+mm12@users.noreply.github.com>

* Update app/src/main/java/eu/kanade/presentation/track/components/TrackLogoIcon.kt

---------

Signed-off-by: Catt0s <5874051+mm12@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-10-26 10:38:27 +02:00
Secozzi
973a137716
Fix MAL search results not showing start dates
The previous approach would always throw an Exception because
`SimpleDateFormat.format()` expects the input to be of type `Date` or
`Number`, not `String`.

Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
2024-10-26 10:22:35 +02:00
MajorTanya
2e6b1642e9
Change Kitsu to kitsu.app domain
cf. hummingbird-me/kitsu-server@244fdcc

Co-authored-by: MajorTanya <39014446+MajorTanya@users.noreply.github.com>
2024-10-26 10:20:03 +02:00
Secozzi
80f038fb78
ExpandableMangaDescription: Adjust size transform anim spec
Co-authored-by: ivan <12537387+ivaniskandar@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-10-26 10:15:15 +02:00
Secozzi
8f2466d61e
Add Backup and Restore of Extension Repos (#1057)
* Backup/Restore Extension Repos

* Refactor

* Moving to Under App Settings

* Sort by URL, Check existing by SHA and Error Logging

Untested. Currently in a lecture and can't test if the changes really work.

* Changes to logic

* Don't ask me what's happening here

* Renaming Variables

* Fixing restoreAmount & changes to logic

Co-Authored-By: AntsyLich <59261191+AntsyLich@users.noreply.github.com>

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Roshan Varughese <40583749+Animeboynz@users.noreply.github.com>
2024-10-26 10:12:39 +02:00
Secozzi
4c4c20700c
Rename backup restore error log file
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-09-19 11:19:43 +02:00
FooIbar
f09e563359
Don't crash on ill-formed URLs (#1084)
(cherry picked from commit 854474f85ffc41eccdc2b3a6cf105fa2805ebc3c)
2024-09-19 11:18:18 +02:00
FooIbar
1d2dcac601
Match extra layout space with scroll distance (#1076)
And increase recycler item view cache size.

(cherry picked from commit a3dfd2efe6ace7a2a4d79bd09fb1a729989f1094)
2024-09-19 11:15:51 +02:00
Secozzi
f5eb3e044e
Improve error message if restoring from JSON file
* Improve error message if restoring from JSON file

* Replace Exception with IOException

* Use more generic error message if protobuf fails

* fix lint

Co-authored-by: Vetle Ledaal <13540478+vetleledaal@users.noreply.github.com>
2024-09-19 11:15:36 +02:00
Secozzi
5eb1bf700b
Cleanup backup/restore related code
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-09-19 11:09:57 +02:00
Secozzi
83a10d384e
Fix library is backed up when disabled and make categories backup/restore independent
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-09-19 10:43:31 +02:00
Secozzi
98941fe2d8
Adds Option to Copy Panel to Clipboard
* Add Copy to Clipboard

* Removing Unused Import

* Reusing onShare function

* Commit Suggestion

* Early Return on null

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Roshan Varughese <40583749+Animeboynz@users.noreply.github.com>
2024-09-18 09:12:21 +02:00
Secozzi
4f3509cbae
Fix disappearance items when fast scrolling
* Don't use animateItem's fade-in/fade-out in FastScrollLazyColumn

* Move to extension function

Avoid using animateItemPlacement name since it's shadowed by compose-bom's deprecated one

Co-authored-by: Cuong-Tran <16017808+cuong-tran@users.noreply.github.com>
2024-09-18 09:03:57 +02:00
Secozzi
0d712f8df4
Format Category String on Subtitle Display
* Fixes #1029

* Max Line Length Fix

* Update SettingsLibraryScreen.kt

No idea how this works.

Co-authored-by: Foolbar <118464521+Foolbar@users.noreply.github.com>

---------

Co-authored-by: Foolbar <118464521+Foolbar@users.noreply.github.com>
Co-authored-by: Roshan Varughese <40583749+Animeboynz@users.noreply.github.com>
2024-09-18 08:54:02 +02:00
Quickdev
79cd35b29a
feat(downloader): Copy the file location when using ext downloader (#1758) 2024-08-29 10:28:43 +02:00
Secozzi
dabfdf968e
fix(downloader): Don't invalidate anime downloads on startup (#1753) 2024-08-29 10:28:05 +02:00
Secozzi
5c939814a7
fix(animescreen): Fix airing time not showing (#1720) 2024-07-25 12:19:56 +02:00
Secozzi
1d18aa313f
feat(entry): Show "Now" instead of "0 minutes ago" (#1715) 2024-07-21 14:47:55 +02:00
jmir1
c83ebf322f
fix: Group updates by date and not time 2024-07-18 16:01:36 +02:00
Secozzi
291c24b405
feat(player): Add better auto sub select (#1706)
Co-authored-by: Abdallah <54363735+abdallahmehiz@users.noreply.github.com>
Co-authored-by: jmir1 <jhmiramon@gmail.com>
2024-07-18 13:48:26 +02:00
jmir1
58817c724e
fix(tracking): Fix Shikimori 2024-07-16 22:59:30 +02:00
jmir1
74b32a3a0b
fix: Use different status strings for anime trackers 2024-07-16 22:53:53 +02:00
jmir1
03e1ecd75e
fix: Some issues with relative date calculations 2024-07-16 20:25:18 +02:00
jmir1
1f3be7b523
feat: Show hours and minutes in relative time strings
Closes #1702
2024-07-16 17:37:09 +02:00
jmir1
5ae35c891b
fix: Actually remove ACRA 2024-07-16 15:44:43 +02:00
Abdallah
60c671aa27
feat(player): Add video filters (#1698) 2024-07-16 15:40:08 +02:00
jmir1
d3c6a159d8
chore: Remove ACRA 2024-07-16 15:38:41 +02:00
Secozzi
150ba47b76
detekt(detekt): detekt 2024-07-13 10:07:28 +02:00
Secozzi
633e9880a2
Bump coil version and some cleanup
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
2024-07-13 09:34:39 +02:00
Secozzi
20d8b06104
Fix some issues when reading/saving images
* Fix unsupported mime type error when saving images

Avoid using platform mime type map to get extensions as it may not have
all mime types we support.

* Fix jxl images downloading/reading

Co-authored-by: FooIbar <118464521+FooIbar@users.noreply.github.com>
2024-07-13 09:31:27 +02:00