Pauline
41cc1fe723
Fallback chapter name if it ends up as blank ( #9220 )
...
* change the directory's name for a download when the chapter's name is only composed of numbers or is blank
* maj in case the chapter name is blank or empty
* clean code
1 year ago
arkon
add228407f
Remove abstract TabeedBottomSheetDialog class
1 year ago
Ivan Iskandar
2c6e025063
Add more info to debug screen ( #9357 )
...
* App version
* WebView version
* ART profile status
* Device model
* Android version
1 year ago
arkon
97e6f1ea9a
Upgrade to AGP 8.0.0 ( #9351 )
1 year ago
arkon
5c1a81d8ca
Merge branch 'patch'
1 year ago
arkon
c615f4d458
Release v0.14.6
1 year ago
Eshlender
7115a9b9fe
Update track domain shikimori.me ( #9333 )
...
shikimori.me
(cherry picked from commit 564a0980b9
)
1 year ago
arkon
fd8b97fc87
Better handle overflowing content in MigrateDialog actions
...
Fixes #9207
(cherry picked from commit b7cd7b8b4e
)
1 year ago
arkon
4dd67e4348
Save current chapter progress when navigating to adjacent chapters
...
Fixes #9295
(cherry picked from commit 776d36caf1
)
1 year ago
arkon
38428c6ebe
Show proper string in manga detail screen for SourceNotInstalledException
...
(cherry picked from commit 14d1bcacc9
)
1 year ago
arkon
bf85e147e7
Set default automatic library updates to off
...
(cherry picked from commit abd23b6826
)
1 year ago
arkon
d2dd34c2e5
Use queued last chapter read number when performing delayed tracker update
...
Fixes #8876
(cherry picked from commit f7f2072621
)
1 year ago
arkon
aa2ec5940f
Avoid crashing in SourcePreferencesScreen if source can't be loaded
...
(cherry picked from commit 4efca04765
)
1 year ago
arkon
79323de326
Avoid crash in DeleteLibraryMangaDialog
...
No clue why it ever gets a -1 index though.
(cherry picked from commit b12c7cf963
)
1 year ago
Two-Ai
08e6487a9a
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.
(cherry picked from commit 779df32e98
)
1 year ago
arkon
6f2bb18d72
Avoid crash when loading invalid extension package
...
(cherry picked from commit 3d7c136320
)
1 year ago
arkon
c6ac992798
Move library columns settings to library sheet
...
Closes #3969 . Dialog-ception.
1 year ago
arkon
8ab7e63293
Add tests for MissingChapters function
1 year ago
arkon
4bcd623829
Move worker info screen into debug info menu
...
No need to translate anything for debug info. Dunno what else will end up in that menu in the future.
1 year ago
Trace
4816b4b53a
fix: skip duplicate chapters on download ahead if option to skip duplicates is enabled ( #9334 )
...
* fix: skip duplicate chapters on download ahead if option is enabled
* fix: Use a function to filter duplicates
1 year ago
Ivan Iskandar
60d8650860
WheelPicker: Add manual input ( #9338 )
1 year ago
Eshlender
564a0980b9
Update track domain shikimori.me ( #9333 )
...
shikimori.me
1 year ago
Ivan Iskandar
c1e23ec18e
GlobalSearchScreen: Skip result screen when using search intent ( #9299 )
1 year ago
arkon
b7cd7b8b4e
Better handle overflowing content in MigrateDialog actions
...
Fixes #9207
1 year ago
arkon
776d36caf1
Save current chapter progress when navigating to adjacent chapters
...
Fixes #9295
1 year ago
Ivan Iskandar
182e642cfc
SearchToolbar: Check initial search query to open keyboard by default ( #9297 )
1 year ago
arkon
d25ba23079
Fix automatic backups not working
...
Apparently they die if you rename a worker class.
1 year ago
arkon
75460e01c8
Remove crash log notification in favor of sharing directly
1 year ago
RS156
274218cf22
Make center zoom start vertically centered too ( #8849 )
...
Update ReaderPageImageView.kt
"true center" Zoom start position #8747 .
Changed zoom position to get true center value.
1 year ago
Ivan Iskandar
7a1b599462
Adjust SearchToolbar soft keyboard behavior ( #9282 )
...
* Show soft keyboard when the text field is composed (a redo)
* Clear focus on text field when soft keyboard is hidden
* Request focus on text field and show soft keyboard
when clear button is clicked
1 year ago
arkon
1dd62af188
Ensure EmptyScreen is scrollable
...
Also fix padding for loading/empty states in BrowseSourceScreen
2 years ago
Ivan Iskandar
6f1099b710
AdaptiveSheet: Wrap inside Dialog ( #9279 )
...
Because of Compose issue, the style of the sheet surface is adjusted as
a workaround
Ref https://issuetracker.google.com/issues/246909281
2 years ago
arkon
be8e2f119f
Make pin source icon lighter
...
Closes #9274
2 years ago
arkon
18f9e5ba6b
Use IO dispatcher for some screen model work
...
Not sure if this is an ideal approach. If it is, we could migrate more usages to this.
2 years ago
arkon
d1bf857079
Remove unnecessary withIOContext
2 years ago
arkon
be54b8862e
Refactor away some unnecessary lambda expressions
2 years ago
arkon
1a61130f0b
Don't attempt to initialize manga details from BrowseSource or Search screens
...
This was effectively DDoSing sources as it does a request for every entry to get the details (primarily a cover image).
The expectation now is that users have to open individual entries to load the details/cover if needed.
This isn't necessary for most sources, which are able to provide covers as part of the listing normally.
2 years ago
arkon
1de4bc9586
Restore POST_NOTIFICATIONS permission check for SDK 33+
...
Although we don't even target it yet and don't prompt for it but whatever, less work in the future.
2 years ago
arkon
1986042277
Skip POST_NOTIFICATIONS permission check for now
...
Fixes #9265
2 years ago
arkon
e932983494
Subscribe to changes to manga in BrowseSourceScreen
...
Fixes #9235
2 years ago
Two-Ai
35d381144d
Cleanup Preference.asHotFlow() ( #9257 )
...
* Drop duplicate initial call in Preference.asHotFlow
Preference.changes() always starts by returning the current value of
the preference, so asHotFlow calls block twice on the initial value.
Possible breaking change: As implemented, asHotFlow ran block(get())
before returning the flow. After this change, the first call to block
will run within the flow collection. This might cause concurrency
issues if the flow collection is late to execute.
* Inline Preference.asHotFlow
The Preference.changes().onEach().launchIn() pattern is used widely,
so the asHotFlow extension method is redundant.
2 years ago
stevenyomi
0bcc22822d
Simplify code in missing chapters warning ( #9263 )
2 years ago
arkon
1ff78173f7
Adjust missing chapters UI
2 years ago
arkon
8d7a7919a9
Add TODO to default to 32-bit color at some point
...
Originally proposed in #8959
2 years ago
arkon
953720472f
Add "Rotate wide pages to fit" setting for paged reader
...
Originally authored in #7983
Co-authored-by: timothyng-164 <timothyng-164@users.noreply.github.com>
2 years ago
Felix Kaiser
f94d902bb6
Added missing chapters count in MangaInfoHeader ( #9184 )
...
* Added missing chapters count in MangaInfoHeader
* Added "Might be missing chapters"
* Added missing chapters to MangaAndSourceTitlesLarge function
* Removed comments
* Reworked getMissingChapters to countMissingChapters, moved -1 check
* Attempting detecting sub-chapters
* Moved MissingChapters to ChapterHeader; Adapted design to fit in
* Fixed block comment in one-line-element
* Fixed critical missing-chapter counting bug
* Undid unintentional & unnecessary changes
* Moved & refactored countMissingChapters
* Fixed import order; Mapping chapter object to chapterNumber
* Optimized "No (valid) chapters" detection
---------
Co-authored-by: arkon <arkon@users.noreply.github.com>
2 years ago
arkon
da25322572
Bump Compose dependencies
2 years ago
arkon
cb4699a5bb
Bump dependencies
2 years ago
arkon
2e5efadf42
Rename Complications -> Overlay
2 years ago
arkon
ac0596a53d
Revert "Always attempt to split tall images when downloading"
...
This partially reverts commit 2769525b2c
.
Keeps the change to silently ignore spliting errors since it falls back to
the original images in those cases.
2 years ago
arkon
7ec5a51eb8
Move isLocal extension functions to LocalSource
2 years ago
arkon
3cca460282
Misc cleanup
2 years ago
arkon
d703fb7946
Split up ContextExtensions into smaller files
2 years ago
arkon
859601a46e
Clean up WorkManager usages a bit
2 years ago
arkon
cdc160afc2
Convert BackupRestoreService to a WorkManager job
...
Co-authored-by: Jays2Kings <Jays2Kings@users.noreply.github.com>
2 years ago
arkon
14d1bcacc9
Show proper string in manga detail screen for SourceNotInstalledException
2 years ago
arkon
7d8a865cac
Simplify some of the notification builders
2 years ago
Andreas
dfdb688b43
Migrate things to use newer data models ( #9239 )
...
* Remove old database models from Coil
* Remove old database models from TrackInfoDialogHome
* Remove old database models from Backup Manager
2 years ago
arkon
f3ca4e76a8
Re-enable ComicInfo.xml generation on download
...
Closes #8537
2 years ago
arkon
2769525b2c
Always attempt to split tall images when downloading
2 years ago
arkon
843e748de3
Clean up library display settings tab a bit
2 years ago
Alexandr Kozlinskiy
81af97df77
BrowseSource: do networkToLocal and initializeManga inside flow ( #9217 )
...
* do networkToLocal and initializeManga inside flow
* remove BrowseSourceScreenModel.GetManga
2 years ago
Ivan Iskandar
18e55aa25f
Adjust tab indicator visual ( #9219 )
...
Now behaves like the non-compose indicator by showing the swipe progress too
2 years ago
Ivan Iskandar
4d3e13b0d1
Initialize download index disk cache ( #9179 )
2 years ago
arkon
47a2d06682
Refactor tracker status string mappings
...
Should fix #9195
2 years ago
Ivan Iskandar
c0f94ae8af
Revert "Fix banners-related issues" ( #9186 )
...
Revert "Fix banners-related issues (#9143 )"
This reverts commit 63048d2f0b
.
2 years ago
arkon
ed32a511e7
Bump dependencies
2 years ago
arkon
09acc53483
Remove download all chapters menu item
...
Users can still select all the chapters (long press + select all) to download them.
2 years ago
arkon
bebd4be43d
Move more things to domain/data modules
2 years ago
arkon
9b77759f24
Use stricter visibility for composables where possible
2 years ago
arkon
e458de5e9c
Add dot beside unread chapter names
...
Closes #4261
Also includes changes that might help with #9043
2 years ago
arkon
e917349bb7
Use Compose icons instead of drawables
...
Using:
- https://github.com/DevSrSouza/compose-icons
- https://github.com/DevSrSouza/compose-icons/blob/master/simple-icons/DOCUMENTATION.md
2 years ago
arkon
ad4912803b
Refactor SourceManager/StubSource to domain module
2 years ago
arkon
f96f0c5889
Move some preferences into domain module
2 years ago
arkon
2b9acadc5b
Move sourceMapper to data module
2 years ago
arkon
9caa0d147b
Show proper message when doing global update
...
Fixes #9170
2 years ago
Andreas
1abf01c4a0
Convert source modules to Kotlin Multiplatform ( #9172 )
...
Use KMP in source modules
Use KMP in source-api
Expect LocalSource
2 years ago
Two-Ai
b41565f879
Inline DownloadQueue into Downloader ( #9159 )
...
* Move statusFlow and progressFlow to DownloadManager
* Inline DownloadQueue into Downloader
* Move reorderQueue implementation to Downloader
2 years ago
arkon
f03a834136
Add explicit overflow menu options to refresh library category and manga chapters list
...
Jetpack Compose treats mouse input differently than just mimicking a touch input, so dragging doesn't actually
invoke the pull to refresh. If that changes in the future, we could consider removing these.
Doesn't seem too necessary for the extensions list, so I skipped that.
Closes #8455
2 years ago
arkon
f7f2072621
Use queued last chapter read number when performing delayed tracker update
...
Fixes #8876
2 years ago
arkon
5b2e937d5f
Minor refactoring
2 years ago
Andreas
f27dc19b37
Move Local Source to separate module ( #9152 )
...
* Move Local Source to separate module
* Review changes
2 years ago
arkon
2368c50ebb
Add menu shortcut to source settings in BrowseSourceScreen
...
Adapted from TachiyomiSY.
Co-authored-by: jobobby04 <jobobby04@users.noreply.github.com>
2 years ago
Two-Ai
0505906e7a
Move all DownloadService.stop calls to Downloader ( #9146 )
...
Downloader.stop is now the sole responsible for stopping the
DownloadService. This will help cleanly removing
DownloadService.stop when migrating to coroutines.
2 years ago
arkon
4efca04765
Avoid crashing in SourcePreferencesScreen if source can't be loaded
2 years ago
arkon
b12c7cf963
Avoid crash in DeleteLibraryMangaDialog
...
No clue why it ever gets a -1 index though.
2 years ago
arkon
487622c592
Close source filter dialog when filtering
2 years ago
Ivan Iskandar
63048d2f0b
Fix banners-related issues ( #9143 )
...
This is most likely Compose issue so these changes will
be reevaluated when new Compose ver is out.
2 years ago
Two-Ai
79662a5866
Misc Downloader state cleanup ( #9145 )
...
* Replace Downloader CompositeSubscription with nullable Subscription
* Derive Downloader.isRunning from subscription
Also simplify usages of isRunning
* Move DownloadNotifier.paused to Downloader.isPaused
* Remove unused DownloadNotifier.errorThrown
2 years ago
Two-Ai
ed6809fa28
Simplify filter logic ( #9141 )
...
* Remove unnecessary else branch
* Add TriStateFilter applyFilter
* Simplify filterFnTracking filter logic
2 years ago
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
2 years ago
arkon
7ec87e76db
Migrate TriState usages to TriStateFilter enum
2 years ago
Ivan Iskandar
ec3ce74af8
TrackDateSelectorScreen: Use M3 date picker ( #9138 )
2 years ago
Two-Ai
83a4e34095
Remove redundant Downloader isNotification argument ( #9139 )
...
DownloadQueue.clear() already sets QUEUE downloads to NOT_DOWNLOADED.
2 years ago
arkon
84a0044d51
Remove some unused resources
2 years ago
arkon
92132c59f5
Migrate source filter sheet to Compose ( #9135 )
2 years ago
Ivan Iskandar
36ae388332
Bump compose-bom version 2023.02.00-beta02 ( #9137 )
2 years ago
arkon
bd47eafeec
Fix per-category sort/display affecting the wrong category
2 years ago
arkon
9432d2d06a
Bump dependencies
2 years ago
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.
2 years ago
arkon
92bd98e45f
Consolidate all theme colors to presentation-core module
2 years ago
arkon
fd7c993b0b
Move CheckboxState to core module
2 years ago
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.
2 years ago
arkon
0bd56ab77c
Fix height shift when scrolling through themes
2 years ago
Ivan Iskandar
6b03dca5f4
Use Compose Foundation's flow layout ( #9123 )
2 years ago
Ivan Iskandar
bd7b21337c
Add minLines to comfortable grid item title ( #9122 )
2 years ago
Ivan Iskandar
60a3ba5a5c
Use non-stable Compose BOM ( #9120 )
2 years ago
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
2 years ago
arkon
10d7349506
Move more components to presentation-core module
2 years ago
arkon
3d7c136320
Avoid crash when loading invalid extension package
2 years ago
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
2 years ago
arkon
b690de55e5
Release v0.14.5
2 years ago
arkon
83fda20078
Avoid crashes if headers can't be built for usage in WebView
...
(cherry picked from commit ec49411bee
)
2 years ago
arkon
f656a37045
Avoid crashing if getChapterUrl is not implemented
...
Fixes #9105
(cherry picked from commit ceaf579cb0
)
2 years ago
Ivan Iskandar
c58b495433
MainActivity: Avoid navigator-related crash when handling onNewIntent ( #9104 )
...
(cherry picked from commit d3dadf71e8
)
2 years ago
arkon
242aeb6a68
Avoid crashing if opening browse with unavailable source
...
(cherry picked from commit 0ef7650c1a
)
2 years ago
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
)
2 years ago
arkon
d61db5931e
Move reader preloading to IO scope
...
Maybe fixes #8440
(cherry picked from commit e052bdef96
)
2 years ago
arkon
0ea3ac9807
Avoid preload download check if chapter is already loaded or loading
...
Maybe fixes #8953 , #9060
(cherry picked from commit d522d6d545
)
2 years ago
Ivan Iskandar
f9e43f574f
MangaCoverDialog: Disable memory cache ( #9066 )
...
(cherry picked from commit 1671a56f42
)
2 years ago
arkon
5ef11e61d0
Prioritize finding selected chapter when deduping reader chapters
...
Fixes #9054
(cherry picked from commit 23432e4405
)
2 years ago
Ivan Iskandar
48546c3db4
Scaffold: Fix snackbar bottom inset ( #9052 )
...
(cherry picked from commit 34a586ce48
)
2 years ago
Ivan Iskandar
4d87ed496c
Remove FAB extra padding in DownloadQueueScreen ( #9053 )
...
(cherry picked from commit ad762f8303
)
2 years ago
0x7673
06d12e6562
Fix crash in library when selected category is deleted ( #9044 )
...
(cherry picked from commit 13bb45b4be
)
2 years ago
arkon
ec49411bee
Avoid crashes if headers can't be built for usage in WebView
2 years ago
arkon
3f7911235c
Use unique keys for all screens to avoid crashes
...
Fixes #9008
Fixes #9110
2 years ago
arkon
727399611d
Migrate library settings sheet to Compose
2 years ago
arkon
07fdb74fbc
Minor settings sheet cleanup
2 years ago
arkon
d400ac2a49
Remove unnecessary usages of NotificationManagerCompat to actually create notifications
2 years ago
arkon
dd71c76a8f
Move more components
2 years ago
arkon
58a0add4f6
Move more components to presentation-core module
2 years ago
arkon
bfe143015a
Move more components to presentation-core module
2 years ago
arkon
e3cf863230
Start moving some Compose components to presentation-core module
2 years ago
arkon
ee818bc7c5
Move chapter utils to domain module
2 years ago
arkon
f816196df2
Move more things to domain module
2 years ago
arkon
ceaf579cb0
Avoid crashing if getChapterUrl is not implemented
...
Fixes #9105
2 years ago
arkon
b49280e347
Remove unused Rx/Coroutines converters
2 years ago
Ivan Iskandar
d3dadf71e8
MainActivity: Avoid navigator-related crash when handling onNewIntent ( #9104 )
2 years ago
Two-Ai
ffa8c8fd07
Remove RxJava in PageHolder ( #9103 )
...
Inline readImageHeaderSubscription in PageHolder
Inline readImageHeaderSubscription in PagerPageHolder and
WebtoonPageHolder by converting setImage() into a suspend function.
The image processing runs in the loadPageAndProcessStatus
continuation.
Use suspendCancellableCoroutine as a substitute for doOnUnsubscribe
in WebtoonPageHolder.
Closing openStream after the frame.setImage but before the PageHolder
is recycled causes the page display to fail for reasons that are not
currently understood.
Remove subscription handling from WebtoonViewer/WebtoonBaseHolder as
it is no longer used.
2 years ago
arkon
0ef7650c1a
Avoid crashing if opening browse with unavailable source
2 years ago
Two-Ai
4635e58405
Simplify PageHolder load Job ( #9086 )
...
Inline statusJob into loadJob, using supervisorScope to load the page
and track status changes in parallel.
- supervisorScope does not complete until both the child loadPage
coroutine and statusFlow.collectLatest have completed.
- Cancelling supervisorScope cancels the child loadPage coroutine and
statusFlow.collectLatest.
- Use supervisorScope instead of coroutineScope to let status
collection continue if loadPage fails.
Inline progressJob into loadJob, using collectLatest's cancellation
to avoid cancelling the progressFlow collection explicitly.
- collectLatest cancels the previous action block when the flow
emits a new value. This means the DOWNLOAD_IMAGE
progressFlow.collectLatest gets automatically cancelled when
statusFlow emits a new state.
Convert launchLoadJob to suspend function, move job launch to caller,
and rename as loadPageAndProcessStatus.
2 years ago
Two-Ai
dc2eaf0788
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.
2 years ago
0x7673
d02b0ca2db
Add copy tags to clipboard feature ( #9063 )
2 years ago
arkon
4d607c4aed
Don't apply Wi-Fi network restriction for manual library update jobs
...
Fixes #9074
2 years ago
Ivan Iskandar
be4072c86b
Rework on the wheel picker ( #8559 )
...
* Rework the wheel picker
doesn't need for the animation to stop to change the value
* fix
---------
Co-authored-by: arkon <arkon@users.noreply.github.com>
2 years ago
arkon
2970eca9e4
Remove background extensions updates check
...
Same reasoning as removing app update check. It gets kicked off in the foreground now too.
2 years ago
arkon
42954609b9
Remove background app update check
...
We already check in the foreground. If the app isn't being foregrounded at all, then there isn't much
point in checking for an update.
2 years ago
arkon
6348cbaeb7
Add option to hide entries already in library when browsing sources
...
Closes #2941
2 years ago
arkon
a7cb33d8c9
Open global search when Browse is tapped twice
...
Closes #3925
2 years ago
arkon
3a2dc46ff0
Replace Local and In Library badge text with icons
...
Fixes #5725
2 years ago
arkon
e052bdef96
Move reader preloading to IO scope
...
Maybe fixes #8440
2 years ago
arkon
d522d6d545
Avoid preload download check if chapter is already loaded or loading
...
Maybe fixes #8953 , #9060
2 years ago
Two-Ai
7b118eba22
Clean up LibraryItem ( #9072 )
...
* Move LibraryItem vars to constructor vals
* Convert LibraryItem to data class
Remove redundant equals and hashCode
* Remove unused LibraryItem.displayMode
* Simplify LibraryItem.matches()
* Align types in LibraryItem and LibraryBadges
* fixup! Simplify LibraryItem.matches()
2 years ago
arkon
f6e6a7ddf1
Replace custom download amount with next 25
...
Simplifies things and maybe discourages whacky downloading behavior?
Users can still range select in the chapters list to download custom amounts.
2 years ago
Ivan Iskandar
1671a56f42
MangaCoverDialog: Disable memory cache ( #9066 )
2 years ago
arkon
ab6dfe9e25
Bump dependencies
...
Fixes #8168 , I think.
2 years ago
arkon
bff98ca768
Clean up chapter item composables a bit
...
Might help with #9043 ?
2 years ago
arkon
23432e4405
Prioritize finding selected chapter when deduping reader chapters
...
Fixes #9054
2 years ago
Ivan Iskandar
34a586ce48
Scaffold: Fix snackbar bottom inset ( #9052 )
2 years ago
Ivan Iskandar
ad762f8303
Remove FAB extra padding in DownloadQueueScreen ( #9053 )
2 years ago
arkon
389b039679
Update version check for library update job migration
...
Forgot to bump as part of fixing merge conflict for last commit.
2 years ago
Ivan Iskandar
ef9dacde79
Fully utilize WorkManager for library updates ( #9007 )
...
No more trampolining, and stuff.
It's pretty much straight copy-paste from the service, with
some changes related to cancellation handling. Manual updates
will also runs with workman job so auto update work
scheduling need some adjustments too.
Bumped version code to re-enqueue auto update job with the
new spec.
Co-authored-by: arkon <arkon@users.noreply.github.com>
2 years ago
0x7673
13bb45b4be
Fix crash in library when selected category is deleted ( #9044 )
2 years ago
Two-Ai
bd2cb97179
Replace RxJava in DownloadQueue ( #9016 )
...
* Misc cleanup
- Replace !List.isEmpty with List.isNotEmpty
- Remove redundant case in MoreScreenModel
- Drop no-op StateFlow.catch
- From lint warning:
> SharedFlow never completes, so this operator typically has not
> effect, it can only catch exceptions from 'onSubscribe' operator
* Convert DownloadQueue queue to MutableStateFlow
Replace delegation to a MutableList with an internal
MutableStateFlow<List>.
In order to avoid modifying every usage of the queue as a list, add
passthrough functions for the currently used list functions. This
should be later refactored, possibly by inlining DownloadQueue
into Downloader.
DownloadQueue.updates was a SharedFlow which updated every time a
change was made to the queue. This is now equivalent to the queue
StateFlow.
Simultaneous assignments to _state.value could cause concurrency
issues. To avoid this, always modify the queue using _state.update.
* Add Download.statusFlow/progressFlow
progressFlow is based on the DownloadQueueScreenModel implementation
rather than the DownloadQueue implementation.
* Reimplement DownloadQueue.statusFlow/progressFlow
Use StateFlow<List<T>>.flatMapLatest() and List<Flow<T>>.merge() to
replicate the effect of PublishSubject.
Use drop(1) to avoid re-emitting the state of each download each time
the merged flow is recreated.
* fixup! Reimplement DownloadQueue.statusFlow/progressFlow
2 years ago
arkon
477e3d9b94
Release v0.14.4
2 years ago
arkon
3c16082636
Don't show SourceNotInstalledException name in error snackbar
2 years ago
arkon
29aee68ec7
Revert "Show no pinned sources message when attempting to migrate/search"
...
This reverts commit 6bb3070c57
.
This doesn't quite work correctly, so reverting for now.
We'll have to have more robust states or something to deal with this in the
future.
2 years ago
stevenyomi
589bdba0b1
Show exception class in snackbar message ( #9006 )
...
* Show exception class in snackbar message
* omit IOException too
2 years ago
Two-Ai
aca65f13bb
Misc Service cleanup ( #9005 )
...
* Simplify DownloadService wake lock handling
_isRunning is only modified in onCreate/onDestroy, so the listener
job is redundant.
* Drop superclass calls to Service.onCreate/onDestroy
From https://developer.android.com/guide/components/services
> Note: Unlike the activity lifecycle callback methods, you are not
> required to call the superclass implementation of these callback
> methods.
2 years ago
Andreas
b00f00730d
Set InsertPage status to Ready ( #9001 )
...
Fixes insert page just loading
2 years ago
arkon
f2c48480b6
Move some interactors to domain module
2 years ago
arkon
1730dd6af1
Move more things around
2 years ago
Andreas
2501fef9e4
Split UpdatesGridGlanceWidget into smaller bits ( #8991 )
...
- Renamed Composables
- Moved Constants to core module
2 years ago
Andreas
12e41b6e6f
Move Glance Widget to seperate module ( #8989 )
...
Move Widget to seperate module
- Create a core module for presentation. Widget and App will share some resources and hopefully composables
2 years ago
beerpsi
c892c793a8
[BackupRestorer] Handle uncompressed backups ( #8988 )
...
[Backups] Handle uncompressed backups
2 years ago
Two-Ai
3a82b4d924
Don't crash on timeout in renewCache() ( #8986 )
...
Fixes #8962 .
withTimeout throws a TimeoutCancellationException if the timeout
expires. To avoid crashing renewalJob when there are no extensions,
use withTimeoutOrNull which does not throw on timeout.
2 years ago
Two-Ai
b4b3a4d286
Fixup HttpPageLoader _loadPage ( #8984 )
...
Fixup for e4bc8990
(#8955 )
HttpSource.fetchImage() uses Call.asObservableSuccess(), which
cancels the call on unsubscribe. This causes the call to be cancelled
before it is used, leading to a "java.net.SocketException: Socket is
closed" when trying to use the response in putImageToCache().
To fix this, use Call.awaitSuccess() via a new HttpSource.getImage()
suspending function. This addition to source-api is only intended for
app use, so it will not be added to the extensions-api stubs.
2 years ago
stevenyomi
448702e5be
OkHttp Call: split await() and awaitSuccess() ( #8980 )
2 years ago
Two-Ai
2ef1f07aae
Replace PageLoader.getPage() with PageLoader.loadPage() ( #8976 )
...
* Follow page status via StateFlow
Keep getPage subscription since it's needed to load the pages
* Replace PageLoader.getPage with PageLoader.loadPage
2 years ago
stevenyomi
1a319601de
Fix extension search query cursor and debounce ( #8972 )
...
* Fix extension search query cursor
* debounce
* extract debounce constant
2 years ago
Andreas
cdf242e8c8
Move more to data and domain modules ( #8973 )
2 years ago
Andreas
aee785a8bb
Move more implementation to data module ( #8971 )
2 years ago
arkon
d45fc1e245
Move more models to domain module
2 years ago
arkon
14500ba4f8
Move more repositories to domain module
2 years ago
arkon
345e9c2a9a
Move more models to domain module
2 years ago
arkon
b53e24e0db
Move more models to domain module
2 years ago
Andreas
d3a73fc228
Move Category `model` and `repository` to domain and data layer ( #8967 )
...
To keep the commit from being 100+ files the interactors wasn't moved.
The domain module like the data module uses `tachiyomi` instead of `eu.kanade.tachiyomi` for package names
2 years ago
arkon
2ebc8d9ae5
Save current page state on configuration change
...
Fixes #8881
The actual issue is that the ViewModel migration actually differs between what the current `init` block
and previous `onSave` methods did; where the `init` block does not get triggered on saving the
instance on config changes.
Not entirely sure why onSaveInstanceState was explicitly avoided for config changes before, but we
just do it all the time now and end up updating the requestedPage with the current page.
2 years ago
zbue
e28b015580
MangaScreenModel: Make download function follow reader preference ( #8920 )
...
* Make download function more clearer in manga screen
Maybe resolves #8879
* Minor cleanup
* Minor cleanup 2
2 years ago
Two-Ai
e4bc8990fb
Replace RxJava in HttpPageLoader downloader ( #8955 )
...
* Convert downloader Observable to flow
Uses `runInterruptible` to turn the blocking call to `queue.take()`
into a cancellable call.
Flow collection is ended by cancelling the scope in `recycle`. This
means the `HttpPageLoader` can't be reused after calling `recycle`,
but this was true with the `Observable` as well.)
* Convert load Observables to suspending function
Inlining the Observables allows for some simplification of the error
handling. Behavior should be otherwise identical.
* Convert cleanup Completable to coroutine
Uses global `launchIO`, not ideal but similar to previous behavior.
Can't be scheduled on the local `scope` as this runs after `scope` is
cancelled.
2 years ago
Andreas
823749fc1e
Move SQLDelight to data module ( #8954 )
...
And use tachiyomi instead of eu.kanade.tachiyomi for package names in the module
2 years ago
Andreas
2b5d9fd76b
Move shared configuration to subprojects in root Gradle file ( #8951 )
...
* Move shared configuration to subprojects in root Gradle file
* Missed but not forgotten
* Review changes
2 years ago
arkon
7a972dfdb7
Don't use platform attributes for white/black reader backgrounds
...
Probably fixes #8946
2 years ago
Andreas
c31e75f02f
Create plugin for linting ( #8942 )
2 years ago
arkon
2695a4d8c7
Update local source icon and differentiate from fallback source icon
...
Closes #8934
2 years ago
arkon
1a4dad72a9
Hide WebView menu item in reader if local
...
Closes #8932
2 years ago
beerpsi
b7e6b4c28a
[MyAnimeList] Handle cases where my_list_status.status is not present ( #8931 )
2 years ago
stevenyomi
293b967858
Fix installing extensions on MIUI ( #8916 )
...
* Fix installing extensions on MIUI
* isShizukuReady -> isShizukuInstalled
2 years ago
arkon
e468554fd9
Assign keys for global search rows based on source
...
Maybe fixes #8924
2 years ago
arkon
5b5eb92184
Fix checking downloads banner showing up incorrectly
2 years ago
Two-Ai
58ebf14691
Convert PageLoader.getPages to suspending function ( #8917 )
2 years ago
Verzaukeks
992bab4f79
Prevent scrolling outside bounds in webtoon/vertical reading mode ( #8821 )
2 years ago
arkon
6fe650319d
Bump versionCode to prevent downgrades
...
Since the database schema was changed in f301dc64
2 years ago
zbue
f301dc64f0
Allow partially read chapters to be marked as unread in updates screen ( #8884 )
...
* Allow partially read chapters to be marked as unread in updates screen
* Review changes
* Review changes 2
2 years ago
zbue
33a2219716
Enable `confirmButton` only when needed to respond to user input ( #8848 )
...
* Enable `confirmButton` when appropriate
* Show error in dialog instead
* Follow M3 guidelines
2 years ago
Two-Ai
62480f090b
Replace RxJava in ChapterLoader and ReaderViewModel ( #8915 )
...
* Replace RxJava in ChapterLoader
* Don't swallow CancellationException
* Simplify loadChapter behavior
* Add error handling to loadAdjacent
2 years ago
zbue
e7937fe562
Make androidx.preference dialog match M3 dialog ( #8909 )
2 years ago
zbue
287489d7d0
Show chapter scanlator on reader transition ( #8910 )
...
Closes #7131
2 years ago
arkon
2df0236669
Show loading indicator during migration
...
Closes #8862
2 years ago
Aria Moradi
c54d77333f
Suwayomi Tracker: sync changes with Tachidesk v0.6.6 ( #8902 )
...
* Suwayomi Tracker: sync changes with Tachidesk v0.6.6
* replace var with val
2 years ago
Two-Ai
8c494f314c
Fix DownloadPageLoader resource leak ( #8905 )
...
The underlying ZipFile is leaking. To fix, store a reference to the
ZipPageLoader and recycle it on recycle.
2 years ago
Two-Ai
8cea78de83
Fix ChapterCache.isImageInCache() resource leak ( #8907 )
...
diskCache.get() returns a DiskLruCache.Snapshot which must be closed.
2 years ago
arkon
b6468c7e31
Only how indexing downloads banner the first time
...
Closes #8903
2 years ago
arkon
91004ad514
Parallelize global search properly
...
Fixes #8906
2 years ago
arkon
a2ee4e63ae
Minor cleanup
2 years ago
zbue
768bb7b503
Fix downloaded filter unmatched state in manga screen ( #8897 )
2 years ago
zbue
db4ae134aa
Tweak `TriStateItem` view to match in earlier app version ( #8898 )
...
* Tweak `TriStateItem` view to match in earlier app version
* Apply to disabled state too
2 years ago
Alessandro Jean
7329f03bc5
Show proper Exception message in MangaScreen ( #8900 )
...
Show proper Exception message in MangaScreen.
2 years ago
arkon
82ea643c7d
Don't prompt to add to library multiple times
...
Fixes #8842
2 years ago
arkon
741c10e0b9
Reword set category dialog confirmation to "OK"
...
Closes #8878
2 years ago
arkon
34bb90f3c2
Update library sheet filter tab on open
...
Fixes #8885
2 years ago
arkon
f04cf72c0c
Bump core-ktx dependency
2 years ago
arkon
75b23c99ec
Refactor how extensions list is modelled
...
To better enable changing the UI in the future based on sections.
2 years ago
arkon
6bb3070c57
Show no pinned sources message when attempting to migrate/search
2 years ago
arkon
7df10b076c
Show the tracker name when showing error toast
2 years ago
Two-Ai
2245658363
Replace RxJava in DownloadQueueScreenModel ( #8872 )
2 years ago
arkon
46774771ec
Fix double tapping History not working consistently
...
Fixes #8875
2 years ago
arkon
6263817bb4
Avoid crash if multiple instances of ClearDatabaseScreen opened
...
Fixes #8851
I guess we might want to do this for all screens? Maybe?
2 years ago
arkon
60456fe0e9
Fix crash in categories screen on config change
...
Fixes #8861
2 years ago
arkon
a0f47d3f1b
Don't exclude same source when checking for duplicate entries
...
Closes #8870
2 years ago
arkon
6efcb8ccfa
Use Voyager for WebView in non-reader places
2 years ago
arkon
0067d474c8
Use theme padding values in more places
2 years ago
MCAxiaz
cf393b217b
Add Reader Setting to Skip Dupe Chapters ( #8831 )
...
Add reader setting to filter dupe chapters with same scanlator priority.
2 years ago
arkon
e265b929a1
Avoid crashes when fetching assist content URL in ReaderActivity
2 years ago
arkon
4cd01428ed
Only show MIUI extension warning on MIUI >= 13
...
Related to #8834
2 years ago
arkon
3be05fbf9b
Make global search results more compact
2 years ago
arkon
5d90ba8aa0
Only show library continue reading button if there's unread chapters
...
Closes #8865
2 years ago
arkon
48cab708ce
Show available but not installed enhanced trackers
...
Closes #8859
2 years ago
arkon
5d9753d6a7
Bump minimum ext-lib to 1.3
2 years ago
arkon
425e48bec6
Avoid crashes when opening WebView from reader
...
Also ensure WebViewActivity has an Assistant URL when it first opens with a URL.
2 years ago
stevenyomi
2a3c3d8d6a
Fix reader settings sheet's mode section not updated ( #8857 )
2 years ago
stevenyomi
7b026cec8d
Fix floating-point error in navigate pan ( #8856 )
2 years ago
arkon
d8b528a4e0
Remove repetition in enhanced tracker preference declarations
...
Also hides entries that aren't relevant (i.e. if you don't have the source installed).
2 years ago
arkon
0f45907144
Adjust bookmarked chapter styling in Updates
...
To match updated styling in manga screen.
2 years ago
Aria Moradi
c4c9931ae2
add Suwayomi tracker ( #8489 )
...
* add Suwayomi Tracker
* fix compile
2 years ago
arkon
68345e636e
Remove ability to hide unread chapter badges in library
2 years ago
stevenyomi
0861c5618c
Fix reader settings sheet not updated ( #8854 )
...
* Revert "Recreate reader settings when opening sheet (#8054 )"
This reverts commit acb8ab15b2
.
* Revert "Fix stacking of Settings menu in the reader on multiple taps (#8002 )"
This reverts commit 30ac94181b
.
* Fix reader settings sheet not updated
2 years ago
arkon
817418f7c9
Release v0.14.3
2 years ago
arkon
4eb2cd85b2
Update baseline profile
2 years ago
arkon
1e65313fa7
Open entry when long pressing during migration in source search
...
This matches the behavior from 0.13.6
Fixes #8176
2 years ago
arkon
c4c6e41c46
Fix downloaded badges appearing when filtering by downloaded
...
Fixes #8850
2 years ago
Two-Ai
920ca405a2
Use MainScope for coroutines in ui package classes ( #8845 )
2 years ago
arkon
6d3a3b3f39
Adjust bookmarked chapter styling
...
No longer tints the title and subtitle text depending on bookmarked state
in favor of only showing a tinted bookmark icon regardless of read state.
Closes #8839
2 years ago
arkon
50d46fe7f6
Prioritize "all" ("Multi") lang in extensions lists
...
Fixes #8811
Fixes #8812
2 years ago
arkon
91e282d7e5
Show warning about installing extensions on MIUI
...
Related to #8834
2 years ago
arkon
a0f10f868e
Handle file names with multiple ".cbz" occurrences properly
...
Fixes #8838
2 years ago
stevenyomi
6a423f0650
Update toolbar query on genre search ( #8837 )
2 years ago
arkon
5cc84403e1
Debounce reindexing banner
...
Helps avoid showing it for short-lived jobs
2 years ago
Ivan Iskandar
ab61a65b4a
Add worker info screen ( #8774 )
...
Mainly for debug purpose, might help with support.
2 years ago
arkon
01ec26842d
Unify layout for new update and crash screens
2 years ago
arkon
bbf5817805
Allow 2 lines for tracker status text
...
Fixes #8805
2 years ago
jobobby04
611ec8103c
Handle 1000+ pages properly in the downloader ( #8818 )
2 years ago
Henrik
12c672667c
filter mangaupdates search ( #8813 )
2 years ago
arkon
f401574f5a
Increase max library column size back to 10
...
Fixes #8798
2 years ago
AntsyLich
3251fb36c8
Properly fix #8720 ( #8797 )
...
* Partially revert "Move library page EmptyScreens into list/grids"
This partially reverts commit 376bbeb724
.
* Properly fix issue 8720
2 years ago
Ivan Iskandar
94a410f50f
TrackDateRemoverScreen: Fix pop behavior after confirming removal ( #8792 )
2 years ago
arkon
a14c01c1de
Update baseline profile
2 years ago
stevenyomi
a8230ad574
Fix browse search query display and keyboard focus ( #8781 )
2 years ago
Ivan Iskandar
8e1b5b4803
Pager: Bring back previous snapping behavior ( #8776 )
...
New default LazyList snap behavior is optimized for non-pager use.
2 years ago
Ivan Iskandar
8552838bda
Update WorkManager ( #8772 )
2 years ago
stevenyomi
46417fe427
Pass listing query to BrowseSourceScreen ( #8763 )
...
* Pass listing query to BrowseSourceScreen
* Don't use referential equality
2 years ago
stevenyomi
63da463e02
Clean up usages of listing UI models ( #8762 )
2 years ago
stevenyomi
817e144ff6
BrowseSourceScreen: fix navigate up and filter sheet ( #8761 )
2 years ago
Ivan Iskandar
9d2d78ae5b
AdaptiveSheet: Don't blindly consume back event ( #8760 )
2 years ago
stevenyomi
c44db54d9f
Fix snackbar blocking refreshing state in MangaScreen ( #8759 )
2 years ago
arkon
376bbeb724
Move library page EmptyScreens into list/grids
...
It does look awkward due to the lack of filled height within those list/grids though.
Fixes #8720
Fixes #8721
2 years ago
arkon
0e2bdb7863
Minor cleanup
2 years ago
Ivan Iskandar
235bc77457
Fix indexing notif not showing ( #8758 )
2 years ago
Two-Ai
593172f891
Track Page progress with StateFlow ( #8749 )
...
* Update ReaderProgressIndicator documentation
ReaderProgressIndicator is not always determinate (cc554530
, #5605 ).
* Track Page progress with StateFlow
2 years ago
Ivan Iskandar
e20c66b156
App state banner tweaks ( #8746 )
...
* Move download indexing notification to this banner group
* Animate state changes
2 years ago
arkon
5f4825465e
Use actual indexes instead of existing order number when reordering categories
...
Fixes #8738
2 years ago
arkon
bc6a12a4f7
Sort global search source results properly
...
Fixes #8741
2 years ago
arkon
90db3acefd
Don't start at last read page if chapter is completely marked as read
...
Fixes #8737
2 years ago
arkon
2f2f59279d
Fix crash if tapping title when opening reader directly
2 years ago
arkon
4992f87cb1
Better handle status bar light/dark icons based on banner background color
2 years ago
Jays2Kings
7608cb0da3
Check ext lib version when checking for updates ( #8740 )
2 years ago
arkon
9dd9e741f3
Convert download cache/queue flows into SharedFlows
...
Fixes #8727
2 years ago
Two-Ai
171db639ff
Fix SetMangaViewerFlags ( #8719 )
...
Stop clearing old viewer flags when setting a flag
2 years ago
arkon
3ede42252c
Remove unused resources
2 years ago
arkon
3749cee28f
Add Assistant content URLs
...
This is surfaced in recents on Pixel devices for example.
Docs: https://developer.android.com/guide/app-actions/assistant-sharing
Co-authored-by: Jays2Kings <Jays2Kings@users.noreply.github.com>
2 years ago
Ivan Iskandar
ca500da4d8
Adjust insets handling in tablet UI ( #8711 )
...
* Adds startBar slot in Scaffold to handle nav rail
* Consumes unneeded insets in settings
2 years ago
Ivan Iskandar
820ed6a468
Move system bar color set to the main composable ( #8710 )
...
This one doesn't check navbar location before adding a scrim, doesn't really
matter since now no body component is being drawn below the system bar.
2 years ago
arkon
7cbe18d325
Pull out settings sheet items as reusable composables
2 years ago
Soitora
8937e22ce4
Add back option to hide Updates count ( #8709 )
...
Adds back the option to hide the updates count on the Updates tab
2 years ago
Ivan Iskandar
82a3a98a5a
Adjust screen transitions ( #8707 )
...
* Fade transition between main navigation tabs
* Shared axis X between screen stacks
Activity transition is using a "close enough" shared axis X xml animation
2 years ago
Ivan Iskandar
d97eab0328
Move app state banner to the very top ( #8706 )
...
This moves the banners to the root composable and so eliminates the need to
track the app states in every screen.
2 years ago
arkon
a61e2799db
Abstract ChapterSettingsDialog for reuse elsewhere
2 years ago
arkon
1009e15aa6
Reuse basic theme preview annotation
2 years ago
zbue
01c6e46a71
Show empty screen when a category is empty ( #8690 )
...
* Show empty screen when a category is empty
* Review changes
* Review changes #2
Co-authored-by: arkon <arkon@users.noreply.github.com>
2 years ago
arkon
ed5e013874
Use proper category when getting random item
...
Fixes #8700
2 years ago