Commit Graph

6823 Commits

Author SHA1 Message Date
arkon 048587468d Don't allow swiping away app update install notification
Also show the new version number in the notifications.

(cherry picked from commit 4aa5c6107c)
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 f1afeac0bc)
(cherry picked from commit afd1c3b491)
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 e7695aef78)
(cherry picked from commit 25e0075041)
2022-08-13 15:31:46 -04:00
arkon 85bd12e731 Actually compare chapter numbers as numbers when sorting (fixes #7247)
(cherry picked from commit da8669c826)
(cherry picked from commit 4b7b710b7c)

# 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 6db2becd30)

# 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 7892cc1519)
(cherry picked from commit 0b7d0f7f67)
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 5315467908)
(cherry picked from commit af1ee662ed)
2022-08-13 15:29:28 -04:00
stevenyomi 71db4eebea Filter out empty genres before saving manga to database (#7655)
(cherry picked from commit 4efb736e56)

# 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 702fdb054a)
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 58acf0a8aa)

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

# 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 b563e85c3b)
(cherry picked from commit b729b7f0aa)
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 d6977e5676)

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

# 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 e8b7743826)

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

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/App.kt
(cherry picked from commit 09e5bcaec1)
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 3547d0142f)
(cherry picked from commit d734993349)
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 b635f02d93)

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

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/source/online/HttpSource.kt
(cherry picked from commit bcf9398987)
2022-08-13 15:21:47 -04:00
arkon a126180ca3 Replace deprecated ACTION_MEDIA_SCANNER_SCAN_FILE intent
(cherry picked from commit 0b4f3f5532)
(cherry picked from commit c7e44aa22f)
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 d977b89af1

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

# 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 72aba18dab)
2022-08-13 15:21:04 -04:00
arkon 2ecd2bce51 Bump dependencies + compile SDK to 33 + linting
(cherry picked from commit 3966a917ee)

# 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 be33a57d43)
2022-08-13 15:19:06 -04:00
arkon 422721bb64 Update chapter recognition and related tests
Includes 3e07100dc2

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

# 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 34ac39e7e5)

# 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 5f378e28b6)
2022-08-13 15:02:16 -04:00
Ivan Iskandar b86a549624 UpdatesScreen: Fix inset related issue (#7741)
(cherry picked from commit 4ebceac07f)
2022-08-13 15:02:08 -04:00
Ivan Iskandar cda5730202 MangaFullCoverDialog: Use the new image picker when available (#7740)
(cherry picked from commit aab5a56892)
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 83129385e2)
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 1474c8ffb3)
2022-08-13 15:01:25 -04:00
Ivan Iskandar c0761e8b19 MainActivity: Fix crash on back pressed (#7731)
(cherry picked from commit 441e7bf8b1)
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 71fc5d6d35)
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 ff996d282a)
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 11f640cfee)

# 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 1cbe225a94)
2022-08-13 14:50:16 -04:00
arkon 2999190fad Address misc. build warnings
(cherry picked from commit d6f1534ee8)

# 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 24e64f52e2)
2022-08-13 14:33:55 -04:00
arkon 4e4e369188 Fix crash when setting cover errors (closes #7714)
(cherry picked from commit e511f24979)

# 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 22e83f408b)
2022-08-13 14:31:30 -04:00
Andreas d157115c80 Fake library loading (#7717)
(cherry picked from commit ec96a81735)

# 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 7892cc1519)
2022-08-13 14:30:41 -04:00
Ivan Iskandar f99635bb3a MangaPresenter: Fix incorrect range selection (#7709)
(cherry picked from commit f7b11f2ce9)
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 b4e15263db)

# 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 96c3116af6)
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 7845f9430e)
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 16abfeeff0)
2022-08-13 14:13:36 -04:00
Jobobby04 ce16496275 Simplify group by code further 2022-08-07 13:32:41 -04:00
Jobobby04 ffa8cee0ea Fix sorting crashes 2022-08-07 12:18:40 -04:00
arkon b279c9115f Fix default category showing up in edit manga categories list
Also remove some usages of runBlocking

(cherry picked from commit 3bc6b1e202)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt
2022-08-07 12:17:48 -04:00