1175 Commits

Author SHA1 Message Date
arkon
66d4966463 Queue tracking updates when offline (closes #1497)
Co-authored-by: Jays2Kings <Jays2Kings@users.noreply.github.com>
(cherry picked from commit 5ae4621da10710acb5a966f6570e1603d0d3ca3f)
2021-09-06 16:39:01 -04:00
arkon
eda451a2e4 Rearrange themes, rename "Blue" to "Legacy Blue"
(cherry picked from commit 069f4e12d8b6a05d647f4fcebf639dd298eca13c)
2021-09-06 16:38:56 -04:00
arkon
ca1699aabb Migrate to flow version of ReactiveNetwork
(cherry picked from commit c316e7faabf078229b7a12d811a1ef5815778f8b)
2021-09-06 16:38:55 -04:00
arkon
c45019e19c Don't show update progress notifications if job isn't active anymore (closes #5844)
(cherry picked from commit 7083b3d912a93b774f80adf760fdc32540c09b8d)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt
2021-09-06 16:38:54 -04:00
Ivan Iskandar
0feb9d338f Tablet UI override (#5830)
* Tablet UI override

* Tablet UI advanced pref

(cherry picked from commit 0df23ab87870b87190a3942585da834eff5ed97a)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceValues.kt
#	app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt
2021-09-06 16:38:53 -04:00
Jays2Kings
efd085cbcf Update kitsu to not show "null" for empty descriptions
(cherry picked from commit e6ea530532523ed033fd232fcea2da8f17b973f7)
(cherry picked from commit 634da1519184a1cbfbce7ed7e9bcc7bc7e7cf1b2)
2021-09-01 18:41:07 -04:00
arkon
676d8c85a0 Only update chapter/viewer flags for library manga instead of everything (addresses #5809)
(cherry picked from commit 7fa80ae556de6492cbb60c10a3d751ade5c14c72)
2021-09-01 18:41:00 -04:00
Gauthier
54bd0c155f change Track.last_chapter_read to Float (#5802)
each TrackService can convert it to Int if decimal chapters are not supported

(cherry picked from commit 2cd87332125e8b4c703d2b8f47cfc0d540118a97)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/database/DbOpenCallback.kt
2021-09-01 18:40:59 -04:00
arkon
6b1e7a8b55 Clean up imports
(cherry picked from commit 4b2a9bc6216d07c4d68902e8161ab75919fcee47)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/database/queries/MangaQueries.kt
2021-09-01 18:40:58 -04:00
Taco
dafff19fff Use more Compat utilities (#5786)
* Use ActivityCompat.recreate

* Use more KTX extensions

* Use PackageInfoCompat.getLongVersionCode

* Remove unnecessary compat usages

(cherry picked from commit 12a9d0575d432a4bc2f2c471e864d26205aba953)
2021-09-01 18:40:58 -04:00
arkon
6b70bdd732 Replace Wi-Fi connection check with WifiManager
Previous implementation couldn't detect Wi-Fi connection while using a VPN.

(cherry picked from commit 3155829994348af8325691b1b86f9e89e5eec249)
2021-09-01 18:40:54 -04:00
Jobobby04
4554813588 Build fixes 2021-08-27 12:51:04 -04:00
Taco
18deebf728 Replace NetworkInfo with NetworkCapabilities (#5785)
(cherry picked from commit 6922394b8ec1a886f6552b86b6d5dc9504f8de10)
2021-08-27 12:51:03 -04:00
Taco
f7e219e9ac Use NotificationChannelCompat utilities (#5781)
(cherry picked from commit 24fd82d7736a34e5fb628a8a8e810d8d9dc93025)
2021-08-27 12:51:02 -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
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
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
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
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
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
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
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
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
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
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
Jobobby04
8d7aa4b6a2 Fix filtered scanlators 2021-08-02 00:30:19 -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
arkon
2de36cac79 Use chooser intent for sharing saved pages
(cherry picked from commit 649209890d0a7db70dac23bb536d4e40cd8d4b00)
2021-07-25 14:22:20 -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
Jobobby04
e40fbbecbb Add a few source helper functions 2021-07-25 14:16:16 -04:00
Jobobby04
75f5d46f6a Delete the tokens on logout 2021-07-24 12:40:18 -04:00
Jobobby04
0c3e8f977c Fix crash with open in webview after migrate 2021-07-22 19:46:42 -04:00
Jobobby04
0f4414e359 Fix crash if you somehow have a invalid saved search json 2021-07-22 19:29:47 -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
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
arkon
02586404d7 Remove autoAddTrack preference
(cherry picked from commit dce30494467429a0c578386508f1c253fc6d7799)
2021-07-22 15:35:17 -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
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
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
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
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