Commit graph

4174 commits

Author SHA1 Message Date
Jays2Kings
8fa4d01a68 Fix IntListMatPreference.bindTo 2022-04-26 02:31:15 -04:00
Jays2Kings
ce3a774e05 More updates to backup logic from upstream
Removed BackupCreateService among other things
2022-04-26 02:30:13 -04:00
Jays2Kings
3587feb8fa Remove all usage of gson and retrofit
We made it!
2022-04-26 00:08:16 -04:00
Jays2Kings
c22205138a Update BackupTest.kt 2022-04-25 23:54:43 -04:00
Jays2Kings
8235a6c055 Update BackupTest.kt 2022-04-25 23:51:13 -04:00
Jays2Kings
33135f766d Convert Shikimori to kotlinx.serialization
with this, it is over. now for the final cleanup
2022-04-25 23:47:27 -04:00
Jays2Kings
d2c1582a48 Convert Bangumi to kotlinx.serialization 2022-04-25 23:09:57 -04:00
Jays2Kings
07f5056b45 remove space in Mangadex class 2022-04-25 22:59:05 -04:00
Jays2Kings
13e6634832 Convert AniList to kotlinx.serialization + Use user preferred title language in Anilist 2022-04-25 22:58:56 -04:00
Jays2Kings
7637b93cac clean up MigrationProcessHolder 2022-04-25 20:44:27 -04:00
Jays2Kings
acab8ff781 Convert MangaDex (which is still unused) to kotlinx.serialization 2022-04-25 20:43:42 -04:00
Jays2Kings
8791334c36 CustomMangaManager to kotlinx.serialization 2022-04-25 20:42:55 -04:00
Jays2Kings
f81a6dd8d1 Migrate to kotlinx.serialization for download store and deleter 2022-04-25 20:16:29 -04:00
Jays2Kings
152fa0cb9c Update LegacyBackupManager to kotlinx.serialization
Co-Authored-By: jobobby04 <17078382+jobobby04@users.noreply.github.com>
2022-04-25 20:16:19 -04:00
Jays2Kings
25ba20cd2a change Track.last_chapter_read to Float
each TrackService can convert it to Int if decimal chapters are not supported

Co-Authored-By: Gauthier <2139133+gotson@users.noreply.github.com>
2022-04-25 18:55:02 -04:00
Jays2Kings
4b8dbc17fb Remove LibraryUpdateRanker + Library update order
Thanks for the reminder
2022-04-25 16:51:24 -04:00
Jays2Kings
2cc8b64e91 fix theming of chapter filter button on tablets 2022-04-24 23:32:59 -04:00
Jays2Kings
cd59a1ffc0 Fix toolbar for tablets in compact mode 2022-04-24 23:32:27 -04:00
Jays2Kings
6a14859046 add bottom margin for cover only grid
like compact's
2022-04-24 23:22:19 -04:00
Jays2Kings
c3275e63c4 Fix start reading transition name for start reading button on tablets 2022-04-24 23:21:57 -04:00
Jays2Kings
69a0dcaf1a Fixed exit animation of searchactivity with other app intents 2022-04-24 22:16:36 -04:00
Jays2Kings
789692c906 Add option to clear history 2022-04-24 17:08:10 -04:00
Jays2Kings
fb81c0eb95 Match CBZ setting name with upstream 2022-04-24 16:45:42 -04:00
Jays2Kings
68b9750e66 Set download as CBZ as default true 2022-04-24 16:42:38 -04:00
Jays2Kings
db6e0a82d8 Add reader transitions to library and recents
+ helper method to ignore system bar visibility on higher sdks
2022-04-24 16:06:07 -04:00
Jays2Kings
130747ed31 increase reader shared transition time
+ didTransistionFromChapter logic update
2022-04-24 15:59:50 -04:00
Jays2Kings
176aad1baa add onImageLoaded logic to onPageSelected as well
needed for double page after all
2022-04-24 15:44:52 -04:00
Jays2Kings
d6f42cff22 Fixes to landscape zoom when reader shared transition is used
i think these only apply to j2k, seems fine on main
2022-04-24 15:44:24 -04:00
Jays2Kings
2f16e01513 Use shared element transition for manga details to reader
expands on tachiyomiorg/tachiyomi@bdef2cfdfb by supporting opening chapters and closing the reader on the chapter they finished on (if it was visible)

Co-Authored-By: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
2022-04-24 13:11:25 -04:00
Jays2Kings
9ade0d68f9 Fix title overlay in browse source 2022-04-24 13:11:25 -04:00
Jays2Kings
9d1144296c Minor updates to pagerpageholder 2022-04-24 03:43:31 -04:00
Jays2Kings
586e3667c6
Staggered grid layout + Titleless grid option (#1198)
* Most of the work for big toolbar

* minor fixes to library

* Using accurate offset for library

* nav icon fixes

* support tabs scrolling properly

* fix toolbar snap

* Add big icon next to large title

* Update MainActivity.kt

* Update browse sheet toolbar to be its own

* Update recent sheet toolbar to be its own

* fix pop from manga details

* cleanup of BigAppBarLayout

* Use LinearLayoutManagerAccurateOffset for recents

* Updates to searchview

* fix recents scrolling up on device config change

* Move search view up to top on tap

* Fix to recent and library searches

* Fix multi line big titles

* Fix config change resetting recycler scroll

* add end padding to big title

* More fixes

* Fixes to non scrollable appbar controllers

* Move swipe refresh circle with view

* Fix manga details toolbar

* Updates to recents and browse source when config changes

* Fixes to global search

* Fixes to popping from manga details

* clear search when switching controllers + fixes to global and source search

* Update search.xml

* update backgroundColor

* fixes to big appbar background on push

* use canShowFloatingToolbar where possible

* fix collapse/hide of dl bottom sheet

* persist search on config change

* Fix library menu on config change

* Fix recents toolbar placement while searching

* adjust calc of grid layout manager offset

* Fixes to range calculation in library

* More accurate scrollbar in manga details

* use item animator for moving appbar

* alpha on main tb

* accurate offset for settings

* updates to search activity

* Fixes to back button and up button

* Option to go back to smaller toolbar

* Optimization to fast computing offset

* moving scrollbar in library as app bar moves

* fixes to search title in recents

* fix popping into browse after 2 line big titles

* Updates to landscape and tablets

Tablets now always have a sticky header, just shrinks down
Phones in landscape will have a smaller big title

* fixes to main toolbar text alpha

* Fixes to device config changes

* remove updateOnRefresh preference

big toolbar now, you can just reach the first refresh button

* Fix category hopper

* Fix recents in small toolbar mode

* clean up and fixes

* Fixes to back press + search activity

* Fixes to going in and back out of manga details

* Optimizations to grid layout calculations

* adjustments to library fast scroller margins

* Fixes to download queue overflow menu

* Fixes to library search when popping

* Fixes to d/l sheet on launch

* expanding library search

* remove includeTabView as parameter

* remove sheetIsFullscreen

* fixes to bigToolbarHeight

* add onDetachedFromWindow to LinearLayoutManagerAccurateOffset

* add scrollUpAnyway to moveRecyclerViewUp

* snap swipe refresh circle with appbar

* Fixes to extension searching

* accurate offset use in ExtensionDetailsController

* alpha big view adjustments

* Fixes to MigrationController

* Dont change toolbar menus while scrolling down

* staggered grid

* titleless grid + plenty of other fixes

* fix top scrolls for staggered managers

* fix disappearing appbar in some cases

* save cover ratios less often

* Cleanup GlobalSearchController searchItem

* Cleanup SettingsMainController searchItem

* Update LibraryController.kt

* change onRoot to isControllerVisible and add to controller extensions

* lock appbar y when switching tabs

* Dont use large toolbar on extremely small devices

Basically devices in landscape that cant display nav rails

* Fixes to progress view and empty view in landscape

new layout for empty view for short devices

* keep recycler pos when switching between staggered and regular

* move manager offsets to new files

* move StaggeredGridLayoutManagerAccurateOffset to new file

* Move MangaCoverRatios to another file

* setItem -> saveStaggeredState

* cleanup

* fix indent in manga_grid_item

* Use dominant color as a placeholder cover in library

* fix for ungrouped library mode

* clean up search items in BrowseSourceController

* dont show incog icon on main toolbar when search bar is showing

* fix browse source having the grid be offset when popping

* Fixes to drag and drop for staggered/non

* remove mapping for manga not in library

* set min height for grid layout when ratio is provided

* Fixes to estimated heights of viewholders

* rename large toolbar setting to expanded

also update setting copy to mention small devices will never show it

* BigAppBarLayout -> ExpandedAppBarLayout

* save a var for computedRange to ease the calls a bit

* fix crash

* Fix span being wrong at first on auto fit recycler

* Fixes to grid gradient

* fixed behind title showing in compact grid

* Move color processing to manga fetcher + own scope

* Fix staggered not working on compact grid

* More fixes to grid gradient

* Cleanup BaseToolbar

* Refactoring ExpandedAppBarLayout

* misc cleanup

* use updateAppBarAfterY where needed

* Rename ToolbarStates

* refactor toolbar height variable names

* More refactoring to MainActivity

* helper method for setTextColorAlpha

* Refactor MangaDetailsController

* Refactor Recents

* Refactoring settings controllers

* Cleanup Browse controller

* Remove Float.spToPx

its not used

* Clean up ControllerExtensions

* clean up import in BrowseController

* Use keys for the cover preferences

* rename methods in MangaFetcher

* minor refactor in LibraryController

* Add migration method to save covers and ratios of library manga on app update

* MangaCoverRatios -> MangaCoverMetadata

* Cleanup LibraryItem

* Titleless Grid -> Cover-only grid

Going to try this as a different key since it seems like weblate still grabs the string even with different kets from upstream

* Use constants for library layouts

* Use snackbar to show the title of cover only grid when long pressing

* move itemanimator to a different method

same change was already made in staggered branch

* Fixes to browse source toolbar not being expanded

* cleanup ControllerExtensions.setAppBarBG

* Mainactivity cleanup

* Optimizations + fixes to setting menu items in search toolbar

* Fixes to first load of library with staggered grid

* Fix grid items in migration controller

* dismiss about manga title snackbar when selecting again

* use measured width for temp span

* Fixes to switching between grid/list in browse source

with correct offsetting and all

* Fix findFirstVisibleItemPosition for offset layoutmanagers

* remove unneeded invalidateOptionsMenu calls

* More fixes to search toolbar menu in browse source

* filter sources controller now uses search toolbar too when using expanded mode

sticks back to main toolbar when collapsed (ie like older version of j2k)

* Fix compact -> expanded setting change when starting app in compact mode

* Fix starting span of autofit recycler

* fix how findFirstVisibleItemPosition works in staggered grid

* More fixes to BrowseSourceController

* Fixes to LibraryController search menu

* Filter sources search title is now just "search"

because not gonna add a new string for this

* Fix statusbar color when popping back to ext sheet

* Make adding submenu items recursive

* Fix appbar locking up in recents

* Fix download/ext sheet in landscape 3 nav devices

* Fixing to snapping on compact toolbars

* Fix search toolbar menu flashing so much on change

* Fix animation time of snapping compact appbar

* Fixes to toolbar for tablets

* Cleanup

* Fix controller navigation when sidebar shows/hides

Removing the logic for the sidenav fade out change handling too now

In this branch because it made the staggered stuff wonky

Fixes to last commit

* Reduce decoding fullbitmap for covermetadata when possible

* Minor updates to coil setup

allow hardware + disable rgb565 on low ram devices

* better handling of menu item in search toolbar

* minimize use of obtainStyledAttributes of mainActionBarSize

* reorder import

* some staggered fixes to the appbar in library

* use staggered grid pref key directly
2022-04-23 18:41:18 -04:00
Jays2Kings
d8e944f396 Format fixes from last prs 2022-04-23 18:06:16 -04:00
Jays2Kings
99300bafca Added setting to skip updating library titles under certain conditions
Based on #1174

Co-Authored-By: nzoba <55888232+nzoba@users.noreply.github.com>
Co-Authored-By: arkon <4098258+arkon@users.noreply.github.com>
Co-Authored-By: FourTOne5 <59261191+FourTOne5@users.noreply.github.com>
2022-04-23 18:02:13 -04:00
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