Commit graph

3984 commits

Author SHA1 Message Date
Soitora
5b18769f70 New manga info expander (#5771)
* Replace "More" with Arrows

We used to have arrows but it was set away from the description which took a lot of space.

It was changed to "More" text, but with the recent design changes I think it'd look better to get a mix between them both.

* Properly align icons

Co-Authored-By: Andreas <6576096+ghostbear@users.noreply.github.com>

* Expand support to Tablets

Get it... expand... hehe 😎

* Fix expanded width

Also fixes so that the constraint for the toggleLess is dependant on the right thing

* Give info toggles its own space

Uses its own margin now to push info rather than just being attached as a info margin.

* Remove weird duplicates I did not add

I did not add these but I don't see a reason to keep dupes

* Add bottom scrim

* Change to centered arrow under info

Anyone wanna experiment/build on top off then feel free to tweak

* Add background glow to icon for contrast

Co-Authored-By: Andreas <6576096+ghostbear@users.noreply.github.com>

Co-authored-by: Andreas <6576096+ghostbear@users.noreply.github.com>
Co-authored-by: Andreas <andreas.everos@gmail.com>
(cherry picked from commit 57aefcd9176450c6413d8e34482fb6c57d120498)

# Conflicts:
#	app/src/main/res/drawable/manga_info_more_gradient.xml
#	app/src/main/res/layout/manga_info_header.xml
#	app/src/main/res/xml/manga_summary_section_scene.xml
2021-08-27 12:51:02 -04:00
Ivan Iskandar
2bc64c2096 Fix reader crash on Android 9 (#5789)
* Fix failed reader context creation on v28

* Re-apply the reader styles manually after overriding night mode

This commit replaces the ThemeCompat.rebase() call since the private API used is
in dark greylist max target P, thus making it unreachable.

* Revert "Fix failed reader context creation on v28"

This reverts commit 6e2104d7

(cherry picked from commit b3854ad3829dbb97831cd8db3defeb967a89334e)
2021-08-27 12:51:01 -04:00
arkon
e8c67999bc Split out appearance settings from general section
(cherry picked from commit 0493e77cff6e71bcdb8ff679440c4d3df434f326)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt
2021-08-27 12:51:00 -04:00
arkon
ae392192f2 Update app theme preference UI
Heavily influenced by TachiyomiJ2K.

(cherry picked from commit 6240fe1dfc9615b0be4bee6e54070e9d21a68b87)
2021-08-27 12:51:00 -04:00
arkon
3fdd433d89 Update tracker services logo layout (closes #5625)
(cherry picked from commit 7094fef37f32c3c598c1808161a59085d27b26d3)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsTrackingController.kt
#	app/src/main/java/eu/kanade/tachiyomi/widget/preference/LoginPreference.kt
#	app/src/main/res/layout/pref_widget_imageview.xml
2021-08-27 12:50:58 -04:00
arkon
3cf1ae0aa4 Use custom tabs instead of browser (closes #5754)
(cherry picked from commit 6c527d52fb3ace3c26ac2b1e25a764e2dd99231d)
2021-08-27 12:50:57 -04:00
Ivan Iskandar
6ac95ffcd6 Add haptic feedback to reader page slider (#5763)
(cherry picked from commit 887b1570564cfc6c6ff5cf7f438ce6c6634df544)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt
2021-08-27 12:50:54 -04:00
nicki
517cb437be update Anilist tracking title during refresh (#5760)
Co-authored-by: Andreas <andreas.everos@gmail.com>

Co-authored-by: Andreas <andreas.everos@gmail.com>
(cherry picked from commit 50b282f58ba37dd927a71c93a2a70938358e139a)
2021-08-27 12:50:53 -04:00
arkon
cc384d1f25 Minor cleanup
(cherry picked from commit 7d2caeb27060e8f14c2192f6e7a8931657976e2c)

# Conflicts:
#	.github/ISSUE_TEMPLATE/report_issue.yml
2021-08-27 12:50:52 -04:00
arkon
015327829d Minor cleanup
(cherry picked from commit b8ea57e097f26403171ac70e90fd67cfb8f7aec0)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/sources/SourceHolder.kt
2021-08-27 12:50:51 -04:00
nicki
b293b52cf6 Use user preferred title language in Anilist (#5758)
* Use user preferred title language in Anilist

Since Anilist is only used by authenticated users, the title language
can be set using the `userPreferred` field (defaults to romaji)

Changed wherever `title>romaji` was being used. Shouldn't have missed
any. `userPreferred` is also available for Staff and Character but not
relevant to Tachiyomi for now.

Users might need to go Logout and log back in on Anilist to see the
change. Actual setting can be found at https://anilist.co/settings/media

closes https://github.com/tachiyomiorg/tachiyomi/issues/5757

* correct title in anilist model

indicates the fact that userPreferred title is used

* convert forgotten `type` to `format` as well

leads to NPE when using `findLibManga`.
missed one query in https://github.com/tachiyomiorg/tachiyomi/pull/5741

(cherry picked from commit 708e71a35a275836f1f04ccc5f6de0725c4456f6)
2021-08-27 12:50:51 -04:00
Ivan Iskandar
4603465783 Hide reader progress indicator right away (#5750)
The image will be drawn over it so the animation won't be visible anyway

(cherry picked from commit 4eaccc966eba26a47ed3e6d645dcccf8a4edf8ea)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt
2021-08-27 12:50:50 -04:00
Andreas
d621ef0b3a Make default category translatable (#5751)
* Make default category translatable

* Replace duplicate strings with common one

(cherry picked from commit 3670d649b8b011fd3bb10f66e33f221aea2c3b72)
2021-08-27 12:50:49 -04:00
Ivan Iskandar
56a2fec004 Require authentication-confirmation to change biometric lock settings (#5695)
* Requires authentication-confirmation to change biometric lock settings

* Prevent double authentications on older APIs when confirming settings changes

* Use new AuthPrompt API for app lock

With this commit, the app lock will only explicitly require Class 2 biometrics
or screen lock credential. Class 3 biometrics are guaranteed to meet Class 2
requirements thus will also be used when available.

* Use extension toast

(cherry picked from commit 90ab04e81d6ff26656488d3ab4dc3eca4976c5a9)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/security/SecureActivityDelegate.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsSecurityController.kt
2021-08-27 12:50:49 -04:00
Ivan Iskandar
f79ac55182 Partial revert 914b686c8eaf3954e291355975532eb28662c38c (#5749)
Didn't mean to remove this line, this fixes resuming to read downloaded chapter.

(cherry picked from commit 26b8df5354ad6d8a6e147801de009ac3e77d028d)
2021-08-27 12:50:48 -04:00
Ivan Iskandar
add234ce0b PagerPageHolder: Move chooseBackground call to IO thread (#5737)
* ImageUtil.chooseBackground: Use built-in decoder

* PagerPageHolder: Move chooseBackground call to IO thread

Also move stuffs and reuse image stream as bytes

(cherry picked from commit 11a8046c5fa00a6abbaf387ab5c75a9a294a01b8)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt
2021-08-27 12:50:48 -04:00
Ivan Iskandar
acbc4c48fa Edge-to-edge manga details view (#5613)
* Prepare for edge-to-edge MangaController

* Fix derpy liftToScroll with our own implementation

* Edge-to-edge MangaController

Except when legacy blue theme is used.

* Save app bar lift state for controller backstack

* Fix expanded cover position after the view recycled

* Handle overlap changes when incognito mode disabled

* Tablet fixes

* Revert "Handle overlap changes when incognito mode disabled"

This reverts commit 1f492449

Breaks on rotation changes.

* Fix MangaController's swipe refresh position

* All controllers are now doing lift app bar on scroll by default

They are already doing that before so this pretty much just a cleanups.

* TachiyomiCoordinatorLayout: Support ViewPager for app bar lift state check

I'm willing to revert this if this minute detail solution is deemed too hacky xD

* Fix app bar not lifted when scrolled without fling

* Save app bar lift state across configuration changes

* Fix MangaController's swipe refresh position after configuration change

* TachiyomiCoordinatorLayout: Update ViewPager reference when controller is changed

(cherry picked from commit da16110e1c571526baea34275db41937f68c7e8c)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/base/controller/ConductorExtensions.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt
2021-08-27 12:50:47 -04:00
Ivan Iskandar
32fa99377d ReaderTransitionView: Use context theme color for texts (#5738)
* Put themed reader context in adapter

This avoids creating themed context everytime the page holder is created, this
also allows the transition view to use the same themed context.

* Check against app night mode to create themed reader context

* ReaderTransitionView: Use context theme color for texts

The whole reader will need to be recreated when changing reader background while
webtoon mode is used, because recreating just the RecyclerView without messing
up the scroll position is impossible (I hope I just missed something).

(cherry picked from commit 914b686c8eaf3954e291355975532eb28662c38c)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewerAdapter.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonConfig.kt
2021-08-27 12:50:47 -04:00
nicki
6aa59325d0 Label one-shots correctly in anilist track search (#5741)
* use format instead of type in anilist search

As per anilist graphql docs, `type` refers to whether anime/manga and is
redundant (since we already limit it to `MANGA`). What we actually want
is `format` which includes whether the media is a One-shot or Manga

This should help in making search a bit better as one no longer needs to
rely on the Date to figure out if its the One-shot entry or the Manga
entry

* Revert "use format instead of type in anilist search"

This reverts commit 6f0ba4888669f414a2093d7632eb1fab109d74de.

Accidentally changed the wrong query while further testing whoops

* use format instead of type in anilist search

As per anilist graphql docs, `type` refers to whether anime/manga and is
redundant (since we already limit it to `MANGA`). What we actually want
is `format` which includes whether the media is a One-shot or Manga

Changes search query and corresponding JSONALManga structure

(cherry picked from commit 27133520fcede737fb2390014443c67dbb8801cb)
2021-08-27 12:50:46 -04:00
Hunter Nickel
b3b1d2abf4 Fix start/resume fab showing up when entering and then exiting action mode (#5735)
(cherry picked from commit 24b967ad5c06cb663f19e98a31b59ed8ec4a4b1f)
2021-08-27 12:50:46 -04:00
Jobobby04
14be5c75ee Fuck motion layout 2021-08-27 12:50:45 -04:00
Hunter Nickel
77138aba72 Add check for current controller before setting extension update tab badge (#5733)
(cherry picked from commit faef35ec4758b9a14bbcddb9a8edc20b7b623769)
2021-08-27 12:50:45 -04:00
Andreas
8da397c7ed Fix today still being displayed even though relative time is off (#5732)
(cherry picked from commit 326d4c2641a37bb20fe1f43528d8b827a6c829d4)
2021-08-27 12:50:44 -04:00
Riztard Lanthorn
ac75ad7489 add Theme "Teal & Turquoise" (#5681)
* add Theme "Teal & Turquoise"

* re sorting & change tertiary dark

* use alpha on ripple color & capitalize

(cherry picked from commit 83436c9550fb46f6322959b01959542e967ec84e)
2021-08-27 12:50:43 -04:00
arkon
2f2352e938 Use separate string for toRelativeString "Today"
Apparently 0 quantity is ignored for some locales...

(cherry picked from commit 071bad123208274a8d4858038b4073a0ce208aa3)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt
2021-08-27 12:50:42 -04:00
arkon
26e9b45687 Use toRelativeString in Updates and History headings
(cherry picked from commit ae1a76da2bf99d3fb06cede954f188c2169637fa)
2021-08-27 12:50:42 -04:00
Andreas
d33b868991 Use relative time in ChapterHolder (#5719)
* Use relative time in ChapterHolder

Similar to how J2K does it

* Use custom implementation for relative time

* Changes based on review comments

(cherry picked from commit 57a5862840eafc0848c5226376f2f22c48693e5a)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChapterHolder.kt
2021-08-27 12:50:42 -04:00
Jobobby04
3059008476 Cleanup 2021-08-27 12:50:41 -04:00
Arraiment
a79c4babae Allow FilterList to be passed with default values (#5716)
(cherry picked from commit 91fbccdbaa9f30bedd7758634aa01478270d1eed)
2021-08-27 12:50:41 -04:00
Long
7b56261719 DNS-over-HTTPS (Adguard) (#5715)
* Update DohProviders.kt

* Update NetworkHelper.kt

* Update SettingsAdvancedController.kt

* fix typo

* Fix typo

* Fix typo

(cherry picked from commit 0ab0dd95ae9a427137d6d94e256284ad4d58fbcb)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt
2021-08-27 12:50:40 -04:00
Hunter Nickel
dc56b47e16 Add toggle to invert page color in reader color filter settings (#5713)
(cherry picked from commit 4c8dfd0c0cad40c1412d211cd40355f86152559b)
2021-08-27 12:50:40 -04:00
arkon
06976401a5 Open tracker page when clicking logo (closes #5624)
(cherry picked from commit 79da33b597728f93b24fd8461e7c3a63b41e49f0)
2021-08-27 12:50:38 -04:00
arkon
c69bb5b33d Always re-setup background jobs on migration runs
(cherry picked from commit 7d67450e5800c90a6bb3f2d401b048e1acc5b0d0)
2021-08-27 12:50:37 -04:00
arkon
cde6f127b1 Do background app/extension checks less frequently
Since the in-app checks occur at least once a day anyway.

(cherry picked from commit 8aa11951bffd491f52d89815f0f61b40187e37ef)
2021-08-27 12:50:37 -04:00
arkon
4248a3132a Add in-app app update check
(cherry picked from commit f23f22ab0139da91b4da5afcb96541c302566653)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateChecker.kt
#	app/src/main/java/eu/kanade/tachiyomi/data/updater/UpdaterJob.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt
2021-08-27 12:50:36 -04:00
Hunter Nickel
47a534c454 Apply app theme styling to reader page errors and progress dialog (#5705)
(cherry picked from commit d1bb0fdf1dabd59cae2949c707dce441f054d1cf)
2021-08-27 12:50:35 -04:00
Jobobby04
10c8c3baee Add a option to force migrate all nhentai manga to the nhentai other lang
Dont blame me if this breaks your library
2021-08-27 12:50:34 -04:00
Jobobby04
e284c7a921 Add E/Exh popular as the default browse menu, add a Toplists filter for E-Hentai 2021-08-27 12:50:34 -04:00
Ivan Iskandar
374ecde463 Use correct color for reader loading indicator (#5685)
* Revert "Revert "Use correct color for reader loading indicator (#5645)" (fixes #5669)"

This reverts commit a4eba50c

* Fix crash on older APIs

(cherry picked from commit 5e77ae208da1c21eb58f1eb092ac1e9f3151c14a)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonConfig.kt
2021-08-27 12:50:33 -04:00
Jobobby04
eb7a2ab191 Fix build 2021-08-27 12:50:32 -04:00
arkon
98dfec8fdf Replace AboutLibraries activity with custom controller
(cherry picked from commit 1d10d29fa94f3c22a6e59861c4e1951cdd11dd18)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt
2021-08-27 12:50:31 -04:00
Andreas
e3ee972bf3 Add ability to tweak auto hide sensitivity in Webtoon Reader (#5650)
* Tweak threshold

* Put setting under Webtoon instead

Because it only affects Webtoon related viewers

(cherry picked from commit 7907a4fc24c972811feb6dbf14e99200210e3925)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceValues.kt
2021-08-27 12:50:29 -04:00
Jobobby04
f5645a8382 Revert "Use correct color for reader loading indicator (#5685)"
This reverts commit de698fc2334030faeddc787ac3b224f4bc32d316.
2021-08-27 12:50:28 -04:00
arkon
7b038951b0 Remove ability to set in-app language differently from system's
(cherry picked from commit 03980b2f27bc80bc578808f86a1e114a72a3559e)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt
2021-08-27 12:50:28 -04:00
arkon
bcb15d7ee3 Remove janky tracker icon UI
(cherry picked from commit ab46bd56b03592d2838dfedacd7ab80603932091)
2021-08-27 12:50:27 -04:00
Ivan Iskandar
a90f99c445 Use correct color for reader loading indicator (#5685)
* Revert "Revert "Use correct color for reader loading indicator (#5645)" (fixes #5669)"

This reverts commit a4eba50c

* Fix crash on older APIs

(cherry picked from commit 5e77ae208da1c21eb58f1eb092ac1e9f3151c14a)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonConfig.kt
2021-08-27 12:50:26 -04:00
Andreas
82f0bf809d Fix weird behaviour in library when switching display mode (#5640)
(cherry picked from commit fd45de5c586d5806ca1bf7f2ced06e27febab92d)
2021-08-27 12:50:24 -04:00
Ivan Iskandar
306deb5e6a Fix forced secure screen disabled after disabling incognito
(cherry picked from commit 245132a1d136d41b5c139c09c58711ce224b6494)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/security/SecureActivityDelegate.kt
2021-08-27 12:50:24 -04:00
Jobobby04
ac6e0acc5d Drop blank 2021-08-27 12:50:23 -04:00
Jobobby04
8bcf2f7b82 Add uploader as a virtual tag 2021-08-27 12:50:04 -04:00
Jobobby04
5598ccf9e6 Search EHentai uploader on click 2021-08-27 12:50:04 -04:00
Jobobby04
478d7f989d Improve Hitomi tag list 2021-08-27 12:50:03 -04:00
Andy Bao
b6f454ba66
Sync J2K fields in BackupManga to fix dupe ID (#400)
See: https://github.com/Jays2Kings/tachiyomiJ2K/issues/878
2021-08-20 18:30:26 -04:00
Riztard Lanthorn
c613784fc4
fix toolbar btn color (#395)
* fix prev btn color in vert seekbar

* fix migration button color

use colorOnToolbar instead of colorOnPrimary
2021-08-16 23:01:41 -04:00
Ivan Iskandar
6257d261b3 Fix wonky webtoon layout on less faster devices
(cherry picked from commit 0d28fb31a39c92f19e8cb8fc0ecf5ca1523c1085)
2021-08-04 23:05:29 -04:00
Jobobby04
3c24137810 Probably fix some weird bug when adding a tag 2021-08-04 22:56:33 -04:00
Jobobby04
03dbd617f9 Revert "Fix webtoon page takes up entire screen even if it's smaller (#5622)"
This reverts commit 4adf840f4b.
2021-08-04 15:10:08 -04:00
Jobobby04
8d7aa4b6a2 Fix filtered scanlators 2021-08-02 00:30:19 -04:00
Jobobby04
ae99b733e7 Better way to logout 2021-08-02 00:18:08 -04:00
Ivan Iskandar
d5423caf91 Change BottomNavigationView behavior (#5603)
Similar to app bar's scroll behavior

(cherry picked from commit ff2a4e69526a2edfa5f3bd7570c09204e5ebb9f9)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt
2021-08-01 23:55:38 -04:00
Andreas
2b4adc0c7d Don't hide menu when scrolling through with ReaderSeekBar (#5611)
(cherry picked from commit 7660751f7f85112d6c03872b5a3dc13148f425e0)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewer.kt
2021-08-01 23:45:35 -04:00
Hunter Nickel
c673385653 Add functionality to open SettingsMainController when double-tapping the "more" button (#5633)
(cherry picked from commit 41c060e28b94362779d1e51d05ff019d2bcdcb56)
2021-08-01 23:39:13 -04:00
Ivan Iskandar
e02057a066 Fix reader activity not using preferred language (#5630)
(cherry picked from commit a3090e62f5491d1a50bb97206dc5534e086959db)
2021-08-01 23:38:39 -04:00
Ivan Iskandar
4adf840f4b Fix webtoon page takes up entire screen even if it's smaller (#5622)
(cherry picked from commit 39b7024be02a98c557633df4b06272ceb85fa1fa)
2021-08-01 23:38:28 -04:00
Jobobby04
9916d89296 New attempt to logout 2021-08-01 21:56:04 -04:00
Gauthier
f56fef667b fix regression in cover fetching (#5621)
introduced in https://github.com/tachiyomiorg/tachiyomi/pull/4870
this was previously done here: 7d23fd8ef5/app/src/main/java/eu/kanade/tachiyomi/data/glide/MangaThumbnailModelLoader.kt (L95) as part of https://github.com/tachiyomiorg/tachiyomi/pull/2908

this impacts Komga extension, where server url is manually provided by the user, but due to auto-correct on mobile keyboards the `http` prefix sometimes get capitalized to `Http`.

(cherry picked from commit 20264eecb9c0e583b8ffc10f9437e8b3797bb0f1)
2021-07-28 17:03:08 -04:00
Ivan Iskandar
404c773fd7 ReaderProgressIndicator: Set indeterminate as default state (#5605)
Will also set to indeterminate if progress is 0.

(cherry picked from commit cc55453076b5055fcd202fa10fa56e86493679c7)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt
2021-07-28 17:02:58 -04:00
Ivan Iskandar
c177b4516e Fix list scrolling on quad-state dialog (#5602)
(cherry picked from commit 00ac632d8f8a612f3b7479faabdea2c388faeb99)
2021-07-25 14:22:29 -04:00
arkon
2de36cac79 Use chooser intent for sharing saved pages
(cherry picked from commit 649209890d0a7db70dac23bb536d4e40cd8d4b00)
2021-07-25 14:22:20 -04:00
arkon
e422993c2e Remove unnecessary MultiDex library
(cherry picked from commit f2fca0f13d67ca1800b59ca807280316d700d55d)

# Conflicts:
#	app/build.gradle.kts
2021-07-25 14:22:12 -04:00
FlaminSarge
c89f88de16 Revert changes to last_update behavior from #5436 (#5590)
(cherry picked from commit 4084d5e69a2b19470fc32860b9b7c2722841a0f2)
2021-07-25 14:21:41 -04:00
arkon
9e264a3b89 Relax MIUI backup/restore warning
(cherry picked from commit 0e4ce0f1ae8d8edf17519195b9a9ff62fb3b624e)
2021-07-25 14:21:25 -04:00
Ivan Iskandar
673869bd13 Apply default night mode earlier (#5593)
(cherry picked from commit c42d517f6b13652a7fe9edf21b2441bf35ee75b1)
2021-07-25 14:21:17 -04:00
Jobobby04
e40fbbecbb Add a few source helper functions 2021-07-25 14:16:16 -04:00
Jobobby04
81af5a5654 Cleanup 2021-07-25 14:15:27 -04:00
Jobobby04
1699c2ed67 Fix fab appearing after closing cover expand when no chapters are unread 2021-07-24 13:33:33 -04:00
Jobobby04
877adee4f7 Cleanup 2021-07-24 12:49:09 -04:00
Jobobby04
75f5d46f6a Delete the tokens on logout 2021-07-24 12:40:18 -04:00
Jobobby04
464f2b01a1 Manually try authenticating mangadex logout, skip if it fails 2021-07-24 12:38:55 -04:00
Jobobby04
d22b14734d Cleanup 2021-07-22 20:20:51 -04:00
Jobobby04
b30491c8fb Maybe fix crashing from J2k backups 2021-07-22 20:20:35 -04:00
Jobobby04
0c3e8f977c Fix crash with open in webview after migrate 2021-07-22 19:46:42 -04:00
Jobobby04
698246ee2a Fix crash when somehow a invalid filters json is passed 2021-07-22 19:34:00 -04:00
Jobobby04
0f4414e359 Fix crash if you somehow have a invalid saved search json 2021-07-22 19:29:47 -04:00
Jobobby04
b769043f36 Fix logout of mangadex 2021-07-22 19:28:59 -04:00
Andreas
1480829dd1 Auto hide reader menu when user starts reading again (#5578)
* Hide reader menu when user starts reading again

* Hide menu on zoom and scrolling around during zoom

Didn't work for webtoon

* Only listen when menu is visible

(cherry picked from commit 356cd4ef522bec405253954ec4b2dea90a4e69c7)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewer.kt
2021-07-22 15:50:55 -04:00
FlaminSarge
25629b5a4c Group 'Source not installed' cases in library update error log (#5589)
(cherry picked from commit 88619145d816fdd3248b5c071bdd8059ab3219cb)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/source/SourceManager.kt
2021-07-22 15:48:36 -04:00
Ivan Iskandar
641ad196f9 Reader loading progress indicator changes (#5587)
* Use CircularProgressIndicator on PageHolder

Manually rotate the CircularProgressIndicator inside a wrapper view instead of
drawing our own custom indicator.

* Use CircularProgressIndicator on TransitionHolder

(cherry picked from commit 6ba779fb7ae014d1f6e23d46cabf8c633d279d8e)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt
2021-07-22 15:47:45 -04:00
FlaminSarge
0624b5e7d0 For library update error log, group errors by error string, and then sort the resulting list by source (#5586)
Format is
```
! Error
  # Source
    - Manga
```

(cherry picked from commit 8bd965267ce3adfadd201cc4ea24e84a9f92e590)
2021-07-22 15:37:44 -04:00
Jobobby04
ed19ad8819 Revert "Use jsDelivr as fallback when GitHub can't be reached for extensions list (closes #5517)"
This reverts commit 7891b4de31.
2021-07-22 15:36:04 -04:00
Ivan Iskandar
c030a68d12 Fix incorrect saved tracker dates (#5581)
(cherry picked from commit be28e0b559103960ba2515ecbe57f921a678e918)
2021-07-22 15:35:43 -04:00
Ivan Iskandar
8f0eeb6c9c Fix light navigation bar not applied on first launch (#5582)
No need to touch light system bars when running the splash screen since
they're not that noticeable, and it also breaks on some ROMs.

(cherry picked from commit 116fec208b06bf3a5d8c23ea65831c175015cd90)
2021-07-22 15:35:36 -04:00
Ivan Iskandar
bd4a0e0a73 Fix transparent system bars after MainActivity recreated (#5574)
(cherry picked from commit fece92e15ad07da1791c08d62f138f327c818f8f)
2021-07-22 15:35:27 -04:00
arkon
02586404d7 Remove autoAddTrack preference
(cherry picked from commit dce30494467429a0c578386508f1c253fc6d7799)
2021-07-22 15:35:17 -04:00
E3FxGaming
2a39a9105e Fix Cover sharing and saving (#5335)
* Fix Cover sharing and saving

The newly added manga cover sharing only worked with manga saved to the library (due to the implemented CoverCache only recording covers of library manga).
The changes made with this commit fixes that behaviour by implementing a fallback: the cover can now also be retrieved from the Coil memoryCache.

* Removal of coil MemoryKey usage

No longer uses the coil memory key, instead starts a new Coil request for the cover retrieval.

* Removed try-/catch-wrapper and added context-passing

useCoverAsBitmap lost its try-/catch-wrapper and doesn't call for the context anymore.
Instead shareCover and saveCover now pass their activity as context to useCoverAsBitmap.

* Added missing parameter description for useCoverAsBitmap

(cherry picked from commit fcd6fe5d8a132c1f3773e23777d93b4d73e063ce)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt
2021-07-22 15:34:28 -04:00
arkon
5e89c1c11c Require Komga to be installed when attempting to setup tracker (closes #5491)
(cherry picked from commit a69a8337169798710f9e0cd7072b3fd3be4a5917)
2021-07-22 15:32:43 -04:00
arkon
4bad159174 Warn on backup creation for MIUI users
(cherry picked from commit 697b082591987756dfe197b4ac23c14e8d6cd9e7)
2021-07-22 15:32:35 -04:00
Jobobby04
fda6458821 Implement manga dir rename 2021-07-21 13:56:30 -04:00
Jobobby04
e4debc89f0 Cleanup 2021-07-19 21:34:35 -04:00
Jobobby04
e2a81b1f0c Support new tracking feature in MDList 2021-07-18 22:04:21 -04:00
Ivan Iskandar
699490685f Add Dynamic theme for Android 12 (#5569)
* Add Dynamic theme for Android 12

* Also theme text colors

(cherry picked from commit b2d58e04d262ef30e9232c46e917d45e6dc34c8d)
2021-07-18 22:02:54 -04:00
arkon
3fb7140587 Put Komga tracker in separate group
(cherry picked from commit 8bfc5f045084ff06ba36460fdee1fcd26fa10a93)
2021-07-18 22:02:47 -04:00
arkon
d0b2f6eaec Update detection of disabled MIUI Optimization
(cherry picked from commit a252a8acee8c26ce8ca39f1ae8758d5ed2af0c8e)
2021-07-18 22:02:38 -04:00
Andreas
dd25cd04c1 Add support for start/end fields for Kitsu (#5573)
(cherry picked from commit 447ee4bd09b7e8a2e9cafa5149d825f36f4058aa)
2021-07-18 22:02:31 -04:00
arkon
6f73261e21 Add link to Don't Kill My App! in advanced settings
(cherry picked from commit 5d1134dfa8918d045504f393a0286c78b6e91556)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt
2021-07-18 22:02:00 -04:00
Ivan Iskandar
f2bd785c57 Fix splash screen icon on Android 12 (#5565)
* Use Core Splashscreen for splashscreen stuff

* Keep splash screen until activity ready

Ready as in the data inside starting screen is finished showing

* Use custom splash screen exit animation on older android version

* Add splash screen minimum duration to prevent exit jank

* Fix broken AMOLED theme

* Improvements

(cherry picked from commit 05e7b0dc22dbd9d180e3410fdfa8c3fa1759e57d)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/SourceController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryCategoryView.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt
#	app/src/main/res/drawable/ic_tachi_splash.xml
2021-07-18 22:01:04 -04:00
Andreas
ec7f70e71c Make default tracking status depend if the user has read chapter or not (#5567)
- When user reads a chapter change tracking status to reading

(cherry picked from commit c0647c311002e66c54c3f85d1d075cd216124c86)
2021-07-18 20:21:25 -04:00
Hunter Nickel
6e6d69b6b1 Add cover actions to a dialog when long-pressing manga cover (#5556)
(cherry picked from commit a1e83b9f19844b8590d637f024cb2ee6550f6765)
2021-07-18 20:20:41 -04:00
Soitora
a17747e2b4 Added "Tako" theme (#5546)
* Added "Ninomae" theme

Based on the lovely Ninomae Ina'nis, for Arkon and Flat

* Use updated colors from Ghostbear

Adapted after feedback

Co-Authored-By: Andreas <6576096+ghostbear@users.noreply.github.com>

* Tweak the Ninomae theme further

* Sort themes alphabetically

- Sorts themes alphabetically.
- Use the same capital word system in colors.xml for themes.xml as well.
- Rename AMOLED theme to AMOLED mode in theme.xml and color.xml references.

* More tweaks

* Style incognito bar

Uses a dark purple which looks super clean instead of a washed out gray

This sets the groundwork for other themes too

* Tweak final onPrimary color

* Rename Ninomae to Tako

RIP

Co-authored-by: Andreas <6576096+ghostbear@users.noreply.github.com>
(cherry picked from commit 0d62aedfbb183fbe7c1a4886ed7505c5ce6c8518)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseThemedActivity.kt
2021-07-18 20:20:26 -04:00
Ivan Iskandar
e0b62b9cd1 Don't show navigation overlay if tap navigation is disabled (#5534)
* Don't show navigation overlay if tap navigation is disabled

* Apply feedback

(cherry picked from commit b7c2890250ea8ec4244b939c554bfd0a99c9f799)
2021-07-18 20:19:03 -04:00
Jobobby04
65b6f7df44 Fix build errors because of JSoup update 2021-07-18 20:18:20 -04:00
Jobobby04
cf54851342 Replace material-dialogs with Material Components' SY 2021-07-18 20:17:58 -04:00
Ivan Iskandar
d4993d1b71 Replace material-dialogs usage with Material Components' (#5423)
* Use Material Components' dialogs

For all dialogs that has direct replacement.

* Convert text input dialogs

* Convert quad-state multi choices dialogs

* Convert date picker dialogs

This also changes the flow to remove selected start/finish tracking date and
the track item itself

* Remove material-dialogs dependencies

(cherry picked from commit ae97bb04458c6a754c6e0ca05a2a3b96ce16894f)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/SearchController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/main/WhatsNewDialogController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPageSheet.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBackupController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsDownloadController.kt
2021-07-18 20:15:30 -04:00
arkon
d8054b3f7b Chop long titles in library update notification, fix incrementing when updating covers
(cherry picked from commit 117fd4bd0fe0be3d1f14f8fba736a813332730a0)
2021-07-18 13:10:14 -04:00
FourTOne5
1587923162 Update Libary update notification. (#5545)
* Update LibraryUpdateNotifier.kt

* Update LibraryUpdateService.kt

(cherry picked from commit 1dddba7f251dbda4b935db5f86bd7937fec73fab)
2021-07-18 13:09:56 -04:00
Hunter Nickel
10a927f9d7 Hide the reader seekbar for single-page chapters (#5551)
(cherry picked from commit 7fd75b7501391934d0e966cb4357100303f1ae91)
2021-07-18 13:09:47 -04:00
Hunter Nickel
a46e62eee3 Hide Start/Resume FAB unless there are unread chapters and during loading (#5458)
* Hide Start/Resume FAB unless there are unread chapters

* Remove dead code, rewrite logic for hiding FAB

(cherry picked from commit a6d4a3b785b2ce922b3f0a058ead66d333ab8d12)
2021-07-18 13:08:13 -04:00
Ivan Iskandar
05dbfd94e7 Fix incognito mode disabled after URL intent launched (#5533)
(cherry picked from commit 2423a70abd0213a3f675921a4e5b3925bdb9d20f)
2021-07-18 13:07:53 -04:00
arkon
085358d39c Remove unnecessary DB calls when setting chapter flag defaults
(cherry picked from commit 8931dbb657cfd243a48e537b25d2a8b782a6a982)
2021-07-18 13:07:25 -04:00
arkon
8d88467aa0 Fix Incognito Mode toggle not updating after disabled via notification
(cherry picked from commit 52416ff3a85bd6f17fb12f218398c5c9fd198397)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/more/MoreController.kt
2021-07-18 13:07:16 -04:00
Jobobby04
2bdead3e5f Cleanup mangadex, hopefully mitigate freezing 2021-07-18 13:06:12 -04:00
Jobobby04
dee3abd0c3 Logout even if the logout response doesnt return ok 2021-07-18 13:05:35 -04:00
Jobobby04
09ea9deb67 Stop excluding Tsumino from library updates 2021-07-12 12:26:41 -04:00
Jobobby04
866c4a77a3 Use a empty title if none is found 2021-07-11 21:24:24 -04:00
Jobobby04
a856ea20b4 Cleanup 2021-07-10 17:33:25 -04:00
Jobobby04
e6cb339ff5 Mangadex fixes 2021-07-10 17:27:21 -04:00
arkon
b7321ca204 Improving genre search started from the manga page of a popular manga (#4375)
Co-authored-by: E3FxGaming <E3FxGaming@users.noreply.github.com>
(cherry picked from commit 62955e73852ed1ca69a1168c855721076da9fb05)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt
2021-07-10 17:22:54 -04:00
Ivan Iskandar
db395f5e37 Support more image formats for covers (#5524)
* Add TachiyomiImageDecoder for Coil

Is currently used to decode AVIF and JPEG XL images.

* LocalSource: Check against file name for cover

This allows file with all supported formats to be set as cover

* TachiyomiImageDecoder: Handle HEIF on Android 7 and older

(cherry picked from commit 1ef77225040842af778282168e6fb8b11c339eeb)
2021-07-10 17:18:50 -04:00
arkon
7891b4de31 Use jsDelivr as fallback when GitHub can't be reached for extensions list (closes #5517)
(cherry picked from commit 24bb2f02dce135e0ceb2856618ecfc0e30dce875)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/extension/api/ExtensionGithubApi.kt
2021-07-10 17:18:37 -04:00
arkon
15707d933a Use fade transactions when handling shortcuts
(cherry picked from commit 627698d81fe9559ae23acfe3aec492bacfe1eceb)
2021-07-10 15:48:10 -04:00
arkon
6516a4285f Add warning for MIUI users when trying to restore backups with MIUI Optimization disabled
(cherry picked from commit d4c8480dee8bb26ec7ea34f0744534e585a3f685)
2021-07-10 15:48:01 -04:00
arkon
5a1f09e904 Parallel cover update job
(cherry picked from commit 015e8deb799a652b923649d58f329ad78d69d2b9)
2021-07-09 17:52:45 -04:00
jmir1
a844c636a6 show correct number of items in the library tit... (#5516)
...le, even when all manga are in a category that isn't the default
category.

(cherry picked from commit 8d5f7985915f45bd50ad889707a4049b50400124)
2021-07-09 17:52:37 -04:00
arkon
b5f4eb79d9 Show all currently updating manga in library update notification
(cherry picked from commit e65f59b3dfdaf776cd101b0e80d049a1ae4cdac8)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt
2021-07-08 23:34:28 -04:00
Riztard Lanthorn
22fd34088f add Yin Yang Theme (#5508)
* add Yin Yang Theme

* change download badge color to yin yang as well

* update string

* fix &

(cherry picked from commit d9ea621e544981062c2a67b8f4bb196cb0da904f)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceValues.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseThemedActivity.kt
2021-07-08 23:08:47 -04:00
SBence
04326d17bf Sanitize manga title in page download subfolder name (#5514)
(cherry picked from commit fb35d7af59d3f5ed89506b5ac70c07669b00ef44)
2021-07-08 23:05:29 -04:00
Jobobby04
4e8142b5b8 Cleanup library update a bit 2021-07-08 23:05:08 -04:00
Jobobby04
a29ddaaf1c Add debug function to reset viewer for all manga 2021-07-07 20:53:52 -04:00
Andreas
102811f781 Make Automatic Reader Theme pick background/text color based on dark mode preference (#5505)
* Make Automatic Reader Theme pick background/text color based on theme

* Use extension method

(cherry picked from commit c254aa6fcc511eb572f8337a776e4d9cee0cfe8e)
2021-07-07 20:37:26 -04:00
Jobobby04
b49c64d4ff Cleanup 2021-07-07 20:37:14 -04:00
Ivan Iskandar
52b748d935 Simplify locale override (#5509)
(cherry picked from commit 37d30eb887d0580fc98eb6a6fd5d6a08bc585721)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/App.kt
2021-07-07 20:37:02 -04:00
w
4d95306cd9 Update image decoder to add JPEG XL support (#5512)
(cherry picked from commit 49cdcc644c974a8b8bee4977def4af6d28d0bded)
2021-07-07 20:24:08 -04:00
arkon
811be77144 Fix chapter source order not working correctly and allow refresh to update source order
Based on 00f916a4f0

Co-authored-by: CarlosEsco <CarlosEsco@users.noreply.github.com>
(cherry picked from commit 07e5525c7433914f8e4b7dad03eb3081e622df48)
2021-07-07 20:24:00 -04:00
arkon
6323306693 Only update in-library manga chapter settings instead of all
(cherry picked from commit 776194f5b27c1e37023efe61b6893a8874ab75e5)
2021-07-07 20:23:48 -04:00
arkon
c2b07717fc Sanitize spaces when setting URLs without domain
It throws an URISyntaxException otherwise.

(cherry picked from commit ed80ee98a7ebf0b3a546a6269f06f375d4ec4270)
2021-07-07 20:23:42 -04:00
Jobobby04
d788585d14 ReImplement Mangadex deeplink 2021-07-06 16:58:09 -04:00
Jobobby04
90654dc027 Fix page reporting 2021-07-06 15:28:32 -04:00
arkon
183da5cc84 Resource cleanup post-theme removal
(cherry picked from commit 040bac3da2a215802ebad02f8e6a418bb200cb9c)
2021-07-05 18:43:55 -04:00
arkon
693b57b14c Add DARK_BLUE enum value back to avoid crash
(cherry picked from commit 9df721d1586b06ce59321a15dadb7a4f0a65bce1)
2021-07-05 18:43:48 -04:00
arkon
988249b177 Remove Hot Pink theme
The old AMOLED Hot Pink theme is pretty close to what Midnight Dusk + AMOLED is now.

(cherry picked from commit e9dce32a9820e829b1caa1957d2ec1ab9cc9f3c6)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceValues.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/base/activity/BaseThemedActivity.kt
2021-07-05 18:42:30 -04:00