Commit graph

3990 commits

Author SHA1 Message Date
nzoba
0d693a910c
Tracking from everywhere (#1173)
* Add tracking everywhere

* Add update chapters progress from tracker

* Change tracking everywhere to track when marked as read

* Mutualize updateTrack method

* Mutualize updateTrack method with reader and notification

* Revert "Add paused tracking"

This reverts commit 9eb37533

* Revert change for library tracking

* Revert "Add update chapters progress from tracker"

This reverts commit 193a4a8a

* rework of updateTrackChapterMarkedAsRead

* mutualization after rework

* remove oldChapter

* reorder updateTrackChapterMarkedAsRead parameters
2022-04-23 17:52:18 -04:00
Jays2Kings
c1e4effeb5 numberOfBackups defaulted now to 2 2022-04-23 16:45:29 -04:00
Jays2Kings
8955855d3e Add advanced setting to clear WebView data
Co-Authored-By: arkon <4098258+arkon@users.noreply.github.com>
2022-04-23 16:44:52 -04:00
nicki
cb09718f21
When saving dual-page, check folderPerManga pref (#1213) 2022-04-23 16:19:48 -04:00
Jays2Kings
407a90b775 Disable source icon in appbar
too low res and doesnt really fit, so disabling for now
2022-04-23 15:14:07 -04:00
Jays2Kings
2e143b35fc Center big appbar icon for multi line titles 2022-04-23 15:13:26 -04:00
Jays2Kings
643061dd72 Make sure library subtitle does not show on other screens 2022-04-23 04:52:48 -04:00
Jays2Kings
7d9f5dddde Add check in fastcroller to make sure it doesnt activate while dragging 2022-04-23 04:49:16 -04:00
Jays2Kings
861e0c3ba8 More fixes to app bar when switching controllers 2022-04-23 04:34:03 -04:00
Jays2Kings
fc4bb9c36f some fixes to the appbar in library 2022-04-23 04:19:11 -04:00
Jays2Kings
baba5500c2 Add option to disable navigation layout
closes #1210

Co-Authored-By: manatails <4215028+manatails@users.noreply.github.com>
2022-04-23 04:09:40 -04:00
Jays2Kings
e3311e8ed9 Fixes to dragging items via a handle on the right side of the screen 2022-04-22 16:10:25 -04:00
Jays2Kings
26ba712409 Add tutorial card for downloads for swiping
so users can realize how to cancel downloads
2022-04-22 16:08:46 -04:00
Jays2Kings
ff30974cf7 DownloadBottomPresenter as a BaseCoroutinePresenter 2022-04-22 14:51:52 -04:00
Jays2Kings
1596bce43e Improvements to fast scroller
Now able to tap behind the fastscroller, aka the entire the right side of the screen, which helps actually tap the download button in manga details (and fixes #1113)
2022-04-22 14:36:05 -04:00
Jays2Kings
1657a088ef Fix to the search toolbar in search activity 2022-04-22 12:48:15 -04:00
Jays2Kings
59e83f3e91 Fixes to locked manga details page when it shouldnt be 2022-04-22 12:48:15 -04:00
Jays2Kings
6bc1b20529 Fix crash with updateDownload 2022-04-22 12:48:15 -04:00
Jays2Kings
0f50c30ad1 Detect identical mangas when adding to library
Changes from upstream:
Option to migrate/copy from dialog (requires manga to be initialized first)
Dialog shows up on all places you can add manga (browse source and global)

Closes #1207

Co-Authored-By: Felix Kaiser <30923667+foxscore@users.noreply.github.com>
2022-04-22 12:48:15 -04:00
Jays2Kings
54b7288acd Limit chapters shown in removed chapters dialog
Closes #1165
2022-04-22 04:23:51 -04:00
Jays2Kings
b4fd3d2220 Use BaseCoroutine classes for Manga details 2022-04-22 04:18:24 -04:00
Jays2Kings
6af488b8e7 use context.materialAlertDialog() in ClearDatabaseController 2022-04-22 04:16:48 -04:00
Jays2Kings
aca6b04cec use getFavoriteMangas instead of getLibraryMangas where possible 2022-04-22 04:15:58 -04:00
Jays2Kings
d5f66926c0 Updates to clean DB controller
No more RX, hello coroutines (because idk how to invoke rx after sorting)
Option to sort sources by most entries as well as alphabetical
Option to select uninstalled sources
Also keeping the Stubsource check for drawable setting Seishirou added before, since theres a delay with stub source apparently
2022-04-22 01:06:42 -04:00
Jays2Kings
9f4a6698be Use generics with BaseCoroutinePresenter
Which has helped the app not run out of memory and crash 🥳 try as i might it's fairly stable now

Too anyone reading this. I'm very happy, I didn't even make these changes for memory management
2022-04-21 23:39:19 -04:00
Jays2Kings
3cabd7f6f5 Fixes and updates to ClearDatabaseController
fixes to scrolling
update recycler padding to cover above the fab only when it is showing
also hide/show the fab if theres selected items
fix margins for the fast scroller
fix inverse icon and title
2022-04-21 22:38:07 -04:00
Jays2Kings
6c14ea5654 Update preference dependencies + constraintlayout 2022-04-21 21:03:32 -04:00
Seishirou101
f3dc38b629
add clear db by source (#1193)
* add clear db by source

* do suggested changes

* fix issues

* remove fabcontroller

* more fixes

* change invalidateOptionsMenu
2022-04-21 21:00:33 -04:00
Jays2Kings
23d62539b5 Grayscale/Inverted Color filters in readers
Closes #1201
+ animate dimming of window for filter

Co-Authored-By: Hunter Nickel <25621728+datreesezcup@users.noreply.github.com>
Co-Authored-By: arkon <4098258+arkon@users.noreply.github.com>
2022-04-21 16:12:32 -04:00
Jays2Kings
f38641f669 Use cards for categories controller while dragging 2022-04-21 15:53:30 -04:00
Jays2Kings
6174bced03 Updates to Downloads UI
Add background to draggable items - tachiyomiorg/tachiyomi@73e5e9ecd9
Grouped chapter download list by source - tachiyomiorg/tachiyomi@9106fc5b94
Add "Move all chapters from series to top" option to download context menu - tachiyomiorg/tachiyomi@3aa4e6eb93
add sort by chapter number in download queue - tachiyomiorg/tachiyomi@a083e1f71a

Fixes to fab pause/resume
Closes #1205

Co-Authored-By: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
Co-Authored-By: Franco Olivera <franco.olivera@fing.edu.uy>
Co-Authored-By: Riztard Lanthorn <16263232+Riztard@users.noreply.github.com>
2022-04-21 15:52:41 -04:00
Jays2Kings
7363603732 Navigate to pan / landscape zoom
Diffs from upstream:
* String change "Zoom landscape image" -> "Zoom into double page spreads" (I'll be honest I mixed up navigate to pan with landscape zoom for a while like an idiot, maybe thats why users are so lost on finding the setting)
landscape zoom setting is off by default
* Animated zoom just does a 2x zoom instead of full height, so its better for 2 page spreads, however there is a max of full height (minus device cutouts in non multiwindow mode)

Bugs found and fixed from upstream:
* Set the min for canPan to 0.01f, because I once got 1.2207031E-4 and couldn't navigate to the next page without manually panning then tapping again
* Fixed landscape zoom start direction being wrong when going from chaptransition.prev to a page spread, when that page spread is the current chapter (ie swipe to previous chapter page, swipe back, same happens with next) (logic needed to be updated for the forward bool in onPageChange)
* Purely a j2k issue (i think) but since I refresh the viewer on chapter load cuz of double pages, I need to pass null for forward in that case since the animation is already in motion and the current logic will break it

Closes #1195

Co-Authored-By: Gauthier <2139133+gotson@users.noreply.github.com>
2022-04-21 14:09:45 -04:00
Jays2Kings
4739e28307 Fixes to recycler layout on controller change 2022-04-21 14:09:45 -04:00
Jays2Kings
65db84121b minor warnings cleanup 2022-04-21 02:08:22 -04:00
Jays2Kings
e3b4918051 cardToolbar -> searchToolbar
been waiting for the big tb merge for this change
2022-04-21 02:03:26 -04:00
Jays2Kings
0c5b37d42b remove supresslayout usage in library
wasnt doing much
2022-04-21 01:50:19 -04:00
Jays2Kings
c58a2a58cc fixes to the use of lockYPos in library 2022-04-21 01:50:01 -04:00
Jays2Kings
4eabe7956e For compact screens (landscape phones) shrink app bar to compact while searching
Which also fixes recyclers scrolling to the top while searching on a config change
2022-04-21 01:47:15 -04:00
Jays2Kings
1666f8ba4c Fix recents controller app bar at the start 2022-04-21 01:43:46 -04:00
Jays2Kings
325c628172 clear focus on searchview for global search
so users dont have to press back twice
2022-04-21 00:05:34 -04:00
Jays2Kings
09e34d1a73 remove unused methods in MigrationController
and its presenter
2022-04-21 00:03:18 -04:00
Jays2Kings
85e819d0b0 remove deprecated method from GlobalSearchPresenter 2022-04-21 00:03:00 -04:00
Jays2Kings
ba6e7f45be fixing some warnings 2022-04-20 23:47:34 -04:00
Jays2Kings
67e048a20c update BrowseSourceController to match upstream
p much done to stop using a deprecated source details method
2022-04-20 23:47:16 -04:00
Jays2Kings
e415a365b9 gradle updates - kotlin/ndk
kotlin -> 1.6.10
ndk -> 23.1.7779620

+ removal of using use-experimental for opt-in
2022-04-20 23:08:08 -04:00
Jays2Kings
4486665711 Remove gson use in localsource
And keeping up with how source class is from upstream

Co-Authored-By: arkon <4098258+ARKon@users.noreply.github.com>
2022-04-20 22:39:57 -04:00
Jays2Kings
c87806465f kotlinxSerialization -> 1.3.2 2022-04-20 22:39:57 -04:00
Jays2Kings
13bfca7afc Show better error message when empty backup creation is attempted
Co-Authored-By: arkon <4098258+ARKon@users.noreply.github.com>
2022-04-20 21:42:35 -04:00
Jays2Kings
a3686165c4 Optimizations to db calls at start of library 2022-04-20 21:42:05 -04:00
Jays2Kings
077b5ab916 add some cleanup on low memory
doesnt help by much but its here now
2022-04-20 21:33:26 -04:00