7476 Commits

Author SHA1 Message Date
CVIUS
af070a3f0a Detect identical mangas when long pressing to add to library (#7095)
* Detect identical mangas when long pressing to add to library

* Use extracted duplicate manga dialog to avoid duplication

* Partially revert previous commit

* Review changes

* Review changes part 2

(cherry picked from commit f1afeac0bcd3904c323e24d67dd945c85c666f92)
(cherry picked from commit 431c04e54f4acd1c660e83c27886c38955b67871)
2022-08-13 15:46:05 -04:00
Jobobby04
2b9d564841 Minor improvements for delegated source id lists
(cherry picked from commit 1d593de65440ddb531ee0421d17c6033a52dd5bb)
2022-08-13 15:40:55 -04:00
arkon
d09de07a3f Cleanup 2022-08-13 15:40:28 -04:00
arkon
048587468d Don't allow swiping away app update install notification
Also show the new version number in the notifications.

(cherry picked from commit 4aa5c6107ca28bde042095b53f6639aa4444c977)
2022-08-13 15:32:29 -04:00
CVIUS
5dcdd3454b Detect identical mangas when long pressing to add to library (#7095)
* Detect identical mangas when long pressing to add to library

* Use extracted duplicate manga dialog to avoid duplication

* Partially revert previous commit

* Review changes

* Review changes part 2

(cherry picked from commit f1afeac0bcd3904c323e24d67dd945c85c666f92)
(cherry picked from commit afd1c3b49155e68011f24593a2663c285d6c4e66)
2022-08-13 15:32:18 -04:00
nicki
5d5678861d Fix Links to Changelog/Readme/Commits for multisrc (#7252)
* Fix Links to Changelog/Readme/Commits for `multisrc`

working basic fix. Needs to be refactored into `createUrl()`

* Refactor back into `createUrl`

hopefully the logic is understandable
there's three cases:
 - when multisrc, if `path` isn't mentioned, then we're trying to open
   commmit history
 - when multisrc, if `path` is mentioned, then its either a changelog or
   a readme to a multisrc extension, the files are stored in the
   `overrides` subfolder
 - when not multisrc, we're looking at a single source where the links
   are constructed in the same way regardless of it being
   changelog/readme/commit history

(cherry picked from commit e7695aef78c92c10e5bae953b24a19e67ac156af)
(cherry picked from commit 25e007504188463b6e11f1a8b85d2990afef6e75)
2022-08-13 15:31:46 -04:00
arkon
85bd12e731 Actually compare chapter numbers as numbers when sorting (fixes #7247)
(cherry picked from commit da8669c826e6575a76751842bda3da59dc2f07c7)
(cherry picked from commit 4b7b710b7cc2e3526de176eb0eb72d763b32bcd7)

# Conflicts:
#	app/src/test/java/eu/kanade/tachiyomi/util/chapter/ChapterRecognitionTest.kt
2022-08-13 15:31:37 -04:00
arkon
f322a7e660 Add auto split tall images setting
Also includes some fixes for bad merges in earlier commits

Co-authored-by: Saud-97 <Saud-97@users.noreply.github.com>
Co-authored-by: AntsyLich <AntsyLich@users.noreply.github.com>
(cherry picked from commit 6db2becd3023046558c1100a6658a8a76eac1148)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt
#	app/src/main/java/eu/kanade/tachiyomi/util/system/ImageUtil.kt
2022-08-13 15:30:47 -04:00
Andreas
5f7b7c652c Log extension loading errors directly (#7716)
(cherry picked from commit 7892cc1519ef0ecf0dc0b519a0df8806eba05e99)
(cherry picked from commit 0b7d0f7f6727e46e21bd01c4a25968096108e8fd)
2022-08-13 15:29:38 -04:00
Alessandro Jean
214cbed3f0 Add missing Authorization header on MAL refresh token request (#7686)
* Add missing Authorization header on MAL refresh token request.

* Make sure to also close the response when it have failed.

(cherry picked from commit 531546790853dd9adb91777de8d9560a610c4838)
(cherry picked from commit af1ee662eda12d96f27e2f06af9f168f86cdee4c)
2022-08-13 15:29:28 -04:00
stevenyomi
71db4eebea Filter out empty genres before saving manga to database (#7655)
(cherry picked from commit 4efb736e56dd1e9f6438502dac915467f5b64f03)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/database/models/Manga.kt
#	app/src/main/java/eu/kanade/tachiyomi/source/model/SManga.kt
(cherry picked from commit 702fdb054a0a30f4bbd9e43c211d978d297871e9)
2022-08-13 15:29:15 -04:00
Andreas
9a577e1c69 Remove deprecated LibrarySort (#7659)
* Remove deprecated LibrarySort

* Apply suggestions from code review

(cherry picked from commit 58acf0a8aa3aa37b5d9c63d99987a05ee2f8790f)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibrarySort.kt
(cherry picked from commit 4b87831bdd125bbd7c6f2cbddcab97279d71933b)

# Conflicts:
#	app/src/main/java/exh/EXHMigrations.kt
2022-08-13 15:29:03 -04:00
MatchaSoba
9a5ea9b507 Fix logic for searchWithGenre (#7559)
(cherry picked from commit b563e85c3b744595272718f7e82e3272e2a7c57b)
(cherry picked from commit b729b7f0aa11780ada0a7056c153f8c6ef67d864)
2022-08-13 15:28:04 -04:00
arkon
474eea1c84 Avoid catastrophic failure when cover can't be created in local source (fixes #7577)
(cherry picked from commit d6977e5676377f6090c0e0b4eb15fd043fa01e11)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt
(cherry picked from commit cfe78ff907378fe39aa72227c718f96f4ac4ad3b)
2022-08-13 15:27:52 -04:00
arkon
43010e92ac Show better error when trying to open RARv5 file
(cherry picked from commit a84305438853cafa9aff194b89fa221603f2f743)
(cherry picked from commit 53a381ce285f166a8e2e6c635cf71c0bbc662938)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/ChapterLoader.kt
2022-08-13 15:27:44 -04:00
nzoba
38b7240728 Add downloaded icon in TransitionView when chapter is downloaded (#7575)
* Add downloaded icon in TransitionView

* Change icon

(cherry picked from commit e8b7743826e9bf9aa0d15020b81ca0569cbe999d)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerViewer.kt
(cherry picked from commit ea37a5a7a1bf351e7ec7958a0eeb08a1ca1e0a2d)
2022-08-13 15:26:46 -04:00
AntsyLich
d52511d5ce Fix logic of app unlock (#7569)
(cherry picked from commit 8ea05e852efd621ee987c7e45d6db64a083eeffd)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/App.kt
(cherry picked from commit 09e5bcaec1916f4a2e846fc622749b092b10e994)
2022-08-13 15:26:36 -04:00
stevenyomi
06f0817bec Fix image MIME issues that cause download errors (#7562)
* Downloader: ignore non-image MIME to prevent .bin extensions

* ProgressResponseBody: allow null content type

Co-authored-by: anenasa <84259093+anenasa@users.noreply.github.com>

Co-authored-by: anenasa <84259093+anenasa@users.noreply.github.com>
(cherry picked from commit 3547d0142f96c44da7fe1ee5bd6424fea679efa6)
(cherry picked from commit d734993349196ee7fb5303cc73aaff8de0f9a3fd)
2022-08-13 15:26:28 -04:00
f1998f1998
2ee6d2d902 fix concurrent download (#7552)
* Fix concurrent download

* lower Concurrency

* artist Update app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt

Co-authored-by: Vetle Ledaal <vetle.ledaal@gmail.com>

Co-authored-by: Vetle Ledaal <vetle.ledaal@gmail.com>
(cherry picked from commit b635f02d93502f1021f0fe87533dfd96d052ed2f)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt
(cherry picked from commit c69f53a8f4f0764b606c0d08a8d45bd1bc40bbbb)
2022-08-13 15:26:11 -04:00
Jobobby04
8df8622dfa Handle new default user agent where SY uses it
(cherry picked from commit f3ffd3b930ba5d064bfac9138d15614f18d72c04)
2022-08-13 15:25:34 -04:00
arkon
58ef239959 Make default user agent string configurable
(cherry picked from commit 4ee1d72b6f8278d84da6f75d218a51261d175e18)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/source/online/HttpSource.kt
(cherry picked from commit bcf93989877ecf0d09f4a3d28584c107aacf9393)
2022-08-13 15:21:47 -04:00
arkon
a126180ca3 Replace deprecated ACTION_MEDIA_SCANNER_SCAN_FILE intent
(cherry picked from commit 0b4f3f553263281333c6475cdd1a9aea414ce877)
(cherry picked from commit c7e44aa22f61e70afb278e00b3e751bf42ec9847)
2022-08-13 15:21:36 -04:00
arkon
ae7a4744bd Configure SQLite
- Turn on `foreign_keys` to cascade on delete properly
- Turn on `journal_mode` and set `synchronous` to NORMAL which may help performance for larger libraries

Based on d977b89af1f2a8850437ebd978535fc3fbfd257e

Co-authored-by: ghostbear <andreas.everos@gmail.com>
(cherry picked from commit ac4f98e152c66c388dd5f098725f4196df3a7339)
2022-08-13 15:21:24 -04:00
arkon
63cd8f8c07 Use Material3 switches in XML layouts
(cherry picked from commit da7a64b40dda3368565b329e519da3283c797131)

# Conflicts:
#	app/src/main/res/layout/reader_general_settings.xml
#	app/src/main/res/layout/reader_pager_settings.xml
#	app/src/main/res/layout/reader_webtoon_settings.xml
(cherry picked from commit 72aba18dab4f21e8f2c569a1321bdccdf062039a)
2022-08-13 15:21:04 -04:00
arkon
2ecd2bce51 Bump dependencies + compile SDK to 33 + linting
(cherry picked from commit 3966a917ee76f007e581cf5c94a48d29090ef2c6)

# Conflicts:
#	app/build.gradle.kts
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt
2022-08-13 15:20:53 -04:00
arkon
c7ecb58c61 Update .editorconfig
(cherry picked from commit be33a57d43ac7803cbec168c69108c05653fc520)
2022-08-13 15:19:06 -04:00
arkon
422721bb64 Update chapter recognition and related tests
Includes 3e07100dc2725cb2d42050571232dd5d485b4de5

Co-authored-by: Saud-97 <Saud-97@users.noreply.github.com>
(cherry picked from commit 4a71022a609711378df48b62725ee863353193c8)

# Conflicts:
#	.github/workflows/build_pull_request.yml
#	.github/workflows/build_push.yml
#	app/src/test/java/eu/kanade/tachiyomi/CustomRobolectricGradleTestRunner.kt
2022-08-13 15:18:53 -04:00
arkon
92bc9d8801 Update AGP/Gradle
(cherry picked from commit 34ac39e7e5e4d8846a55b396ac02d0758f1c0561)

# Conflicts:
#	.github/workflows/build_pull_request.yml
#	.github/workflows/build_push.yml
2022-08-13 15:18:20 -04:00
Jobobby04
a19e808e47 Remove Library settings sheet in library settings 2022-08-13 15:03:55 -04:00
Ivan Iskandar
33e0d34afa UpdatesPresenter: Prevent unnecessary screen recompose (#7742)
(cherry picked from commit 5f378e28b63e9d606fa3be1acf6650b93ff86daa)
2022-08-13 15:02:16 -04:00
Ivan Iskandar
b86a549624 UpdatesScreen: Fix inset related issue (#7741)
(cherry picked from commit 4ebceac07f83270df81daff99c2f0d360cca37ef)
2022-08-13 15:02:08 -04:00
Ivan Iskandar
cda5730202 MangaFullCoverDialog: Use the new image picker when available (#7740)
(cherry picked from commit aab5a5689250d44913ac3fe2f1a50a3af95b1296)
2022-08-13 15:01:47 -04:00
Weblate (bot)
16fc68a8b9 Weblate translations (#7695)
Co-authored-by: Hiroshi <borlonjhayron1119@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: HouseDrVenus <aurimasjurevic@gmail.com>
Co-authored-by: Igor <zerrxs@gmail.com>
Co-authored-by: Kreby <dlusinskij@gmail.com>
Co-authored-by: moon <jamiejakie@gmail.com>
Co-authored-by: stevenlele <stevenlele@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/strings/be/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/strings/ceb/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/strings/ko/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/strings/lt/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/strings/uk/
Translate-URL: https://hosted.weblate.org/projects/tachiyomi/strings/zh_Hans/
Translation: Tachiyomi/Tachiyomi 0.x

Co-authored-by: Hiroshi <borlonjhayron1119@gmail.com>
Co-authored-by: HouseDrVenus <aurimasjurevic@gmail.com>
Co-authored-by: Igor <zerrxs@gmail.com>
Co-authored-by: Kreby <dlusinskij@gmail.com>
Co-authored-by: moon <jamiejakie@gmail.com>
Co-authored-by: stevenlele <stevenlele@outlook.com>
(cherry picked from commit 83129385e2fcb60273b0162ab034a02440cc4350)
2022-08-13 15:01:34 -04:00
AntsyLich
38237ccc4c Some tweaks on Updates screen (#7729)
Based on #7708, #7709 and #7717

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

Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
Co-authored-by: Andreas <6576096+ghostbear@users.noreply.github.com>
(cherry picked from commit 1474c8ffb337f824bc7f30f1f0f3e70e27205254)
2022-08-13 15:01:25 -04:00
Ivan Iskandar
c0761e8b19 MainActivity: Fix crash on back pressed (#7731)
(cherry picked from commit 441e7bf8b13d320b39a03d998d76fd5096ac9e60)
2022-08-13 15:01:16 -04:00
Andreas
04cab544e3 Add back reset action to the Library and History Search toolbars (#7722)
* Add back reset action to the Library and History Search toolbars

* Localize the descriptions

(cherry picked from commit 71fc5d6d35b0b10917f3db80b236b35fbbdaab3a)
2022-08-13 15:01:05 -04:00
Andreas
948abf2798 Change usage of name to visualName when Default category can be shown (#7725)
(cherry picked from commit ff996d282a2aeb1fcd593bf38400e94453fd2e9b)
2022-08-13 15:00:43 -04:00
AntsyLich
0b1afc1b94 Change return value of SyncChaptersWithSource.await() (#7715)
* Change return value of `SyncChaptersWithSource.await()`

`updatedToAdd.subtract(reAdded).toList()` never worked as at this point `updatedToAdd` contained ids from db where `reAdded` had default one. Was the same case before the rewrite.

Removed `toDelete` from return value as it was not being used anywhere

* Add doc string

* Use HashSet

Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com>

Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com>
(cherry picked from commit 11f640cfee427b8912cdc43fc3efc61e0f774aa7)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt
2022-08-13 15:00:32 -04:00
Andreas
e9829129ae Revert Glance to 1.0.0-alpha03 (#7726)
New release has issue with its ProGuard rules
https://issuetracker.google.com/issues/239549285

(cherry picked from commit 1cbe225a94ab83aa7345017c1d5385bf0f1e430a)
2022-08-13 14:50:16 -04:00
arkon
2999190fad Address misc. build warnings
(cherry picked from commit d6f1534ee8c95c7dc450f1cb86d378007e3bf53b)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/SearchController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/SourceSearchController.kt
2022-08-13 14:50:03 -04:00
arkon
4d315c1d5d Bump dependencies
(cherry picked from commit 24e64f52e2bae4a727647c85fde3004846496108)
2022-08-13 14:33:55 -04:00
arkon
4e4e369188 Fix crash when setting cover errors (closes #7714)
(cherry picked from commit e511f24979b0f40c545345ed151d3557644f79c6)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/SearchPresenter.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt
2022-08-13 14:33:32 -04:00
Andreas
a7400df245 Tweak Library screen (#7718)
* Allow to refresh when there is white space

fixes #7701

* Don't use key on library screen as it retains scroll position on first item

fixes #7631

(cherry picked from commit 22e83f408bc6c19457cc8a03ed7f02d69e9308c7)
2022-08-13 14:31:30 -04:00
Andreas
d157115c80 Fake library loading (#7717)
(cherry picked from commit ec96a81735ee5761eb6c84d15de53e37ece9fdb2)

# Conflicts:
#	app/src/main/java/eu/kanade/presentation/library/components/LibraryContent.kt
2022-08-13 14:31:21 -04:00
Andreas
0b7d0f7f67 Log extension loading errors directly (#7716)
(cherry picked from commit 7892cc1519ef0ecf0dc0b519a0df8806eba05e99)
2022-08-13 14:30:41 -04:00
Ivan Iskandar
f99635bb3a MangaPresenter: Fix incorrect range selection (#7709)
(cherry picked from commit f7b11f2ce92627cbea713c200ed23ec596499d4f)
2022-08-13 14:30:32 -04:00
Ivan Iskandar
2ca853a302 Fix issues related to Manga screen slow load (#7708)
* Fix back handling when manga is still loading

* MangaPresenter: Show what we have earlier to reduce percepted slowness

(cherry picked from commit b4e15263db3d00326abe5886fffb3608c9a85c47)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt
2022-08-13 14:30:16 -04:00
Andreas
8aedad02f6 Update .editorconfig (#7711)
- Set editor to use single name imports

(cherry picked from commit 96c3116af6db8eded246b5e464e74ac3f0ca47ef)
2022-08-13 14:13:53 -04:00
nzoba
425b21ec4e Set readStartTime when switching chapters in a single reader session (#7702)
(cherry picked from commit 7845f9430ec15b25efc0ee212142795b7b34025f)
2022-08-13 14:13:44 -04:00
Ivan Iskandar
c13a0a2722 Glance widget fixes (#7706)
* Fix glance failing when there's too much children

* Adjust cover error placeholder

(cherry picked from commit 16abfeeff0eb482482fb60ac8ab6d01d75942531)
2022-08-13 14:13:36 -04:00