Commit graph

4180 commits

Author SHA1 Message Date
Ivan Iskandar
8ad6e89ca6 MinMaxNumberPicker: Set IME input to use number only (#6286)
* MinMaxNumberPicker: Set IME input to use number only

* MinMaxNumberPicker: Auto disable keyboard input when needed

(cherry picked from commit 3463d6c752cfc1145f4c8db9f65f145002ece5fb)
2021-12-02 19:29:00 -05:00
Henrik
f4f898c5c5 fix MAL search novel filter (#6279)
(cherry picked from commit 8acce011b507db125f71e1dff5cdd76fc5be914c)
2021-12-02 19:28:51 -05:00
arkon
f2b071ee9d Fix crash in clear database screen (fixes #6271)
(cherry picked from commit 6cfd2c510b9ee15bc393db44ad4adce0dfc5c915)
2021-12-02 19:28:23 -05:00
arkon
fba5b999dd Add tertiary badge in appearance preview (closes #5867)
(cherry picked from commit 430ff80198b4441fab9c693ddbe906f74b1d7069)
2021-12-02 19:28:15 -05:00
arkon
43ef18cdc3 Partially migrate LocalSource to 1.x methods
(cherry picked from commit 46a4b0e0b676f72fa747a65bedbb00a68ebdb501)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt
2021-12-02 19:27:53 -05:00
arkon
295d80e741 Add ability to clear cookies per-extension (closes #3153)
(cherry picked from commit bba7372556b7760350d507bb9484043aebfb2050)
2021-12-02 19:22:44 -05:00
Hunter Nickel
7efde9c74c Add feature to clear database manga by source (#6241)
* Implement feature to selectively clear manga from database based on it's source

* Code cleanup and refactoring

(cherry picked from commit 9fe1a7e2ae14c4d7e70bfd85516d91c44514f04a)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/database/queries/MangaQueries.kt
#	app/src/main/java/eu/kanade/tachiyomi/data/database/queries/RawQueries.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt
2021-12-02 19:22:32 -05:00
arkon
475dc87604 Option to clear chapter cache when MainActivity is closed (closes #5651)
(cherry picked from commit 98822a39d9524b08f5954f6bb58ac1d9c704b76d)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt
2021-12-02 19:12:09 -05:00
arkon
f049e1e2db Tweak app theme preference selection (closes #5866)
(cherry picked from commit a2c830b90812e57a228dccfbebfb6976dc856fd6)
2021-12-02 19:11:34 -05:00
Ivan Iskandar
4b25e3c31e Replace Resume FAB reveal animation with container transform (#6250)
(cherry picked from commit bdef2cfdfb50800c35c028a7d41343a99bf95f60)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/widget/RevealAnimationView.kt
2021-12-02 19:11:20 -05:00
Andreas
ecbd80c55d Tweak relative date function (#6249)
* Tweak relative date function

* Cleanup

(cherry picked from commit f229a5e2ec66c45847db36e64efe73f52cc86b8e)
2021-12-02 19:01:47 -05:00
Ivan Iskandar
1fd495f8d8 Reinstate elevation overlay (#6243)
* Theme default elevation overlay

* Fix app bar elevation overlay

Elevation overlay is disabled when tabs are visible

* Remove custom elevation overlay in tracking sheet item

* upsi

(cherry picked from commit 845e06138299c0333ca90ed9578422567779a9ac)
2021-12-02 19:01:41 -05:00
arkon
1a2311e7ba Update dependencies
(cherry picked from commit b4ba56bfb4db31ce121975e4f04db3b666cc4009)
2021-12-02 19:01:25 -05:00
Jobobby04
af89ebaa42 Remove Pure red theme 2021-12-02 19:00:09 -05:00
arkon
19cdcdcab7 Address some Android lint warnings
(cherry picked from commit ad49a028799b669b9abfe82639c78dee8a7a073f)

# Conflicts:
#	app/src/main/res/anim/fade_in_long.xml
#	app/src/main/res/drawable/ic_broken_image_grey_24dp.xml
2021-11-14 18:48:37 -05:00
Andreas
bc73e9f1d8 Fix "Check for updates" not working due to time cooldown (#6232)
* Fix "Check for updates" not working due to time cooldown

* Update AppUpdateChecker.kt

Co-authored-by: arkon <arkon@users.noreply.github.com>
(cherry picked from commit c0d0ff66b6b73efae29635a61e4ee2ea13a925b3)
2021-11-14 18:35:15 -05:00
Jobobby04
4ea72f5342 Keep future chapters on Mangadex like Billibi and Comikey 2021-11-14 18:34:22 -05:00
Jobobby04
b227f2a4a5 Fix most unknown titles 2021-11-14 18:09:47 -05:00
Jobobby04
fb4d15d9ef Better support tsumno and mangadex tag search 2021-11-13 23:19:01 -05:00
Jobobby04
114ef56329 Tweak title parsing 2021-11-13 22:52:50 -05:00
Jobobby04
0df5376545 Mangadex support completed status 2021-11-13 22:46:03 -05:00
Jobobby04
508f025092 Minor cleanup and fix build 2021-11-13 17:43:40 -05:00
Jobobby04
b41c4cac47 Cleanup filter sheet adapter 2021-11-13 17:43:17 -05:00
arkon
4795c16877 Only allow digits in custom download range dialog (closes #6220)
(cherry picked from commit 1e4d7f8c6e94669b929435cfe1da570a460faa35)
2021-11-13 17:31:42 -05:00
arkon
a9dc395e19 Initial pass of Material 3 styling
Adjustments/fixes to follow.

(cherry picked from commit a8a761aa5f6487fa6bf70d192cc73eb5a345d91c)
2021-11-13 17:31:35 -05:00
OncePunchedMan
49afc8c559 Added tabletUI option: "Automatic" (#6208)
* added automatic tablet ui option; useful for foldables

* set automatic as default, rename setting

* remove redundant checks

Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>

* remove redundant checks

Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>

* fix defaultValue

Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
(cherry picked from commit 41952f02156c888c68157ce123f82c1a6f8a323c)
2021-11-13 17:31:26 -05:00
arkon
1cf6e030ef Don't auto-download chapters if excluded but no categories selected (fixes #6126)
(cherry picked from commit 39722055f5a776263dd1b9080271fbeabff9b82b)
2021-11-13 17:31:09 -05:00
arkon
0f70c14879 Remove legacy blue theme
Causing too many theming issues/complexity. This will make the Material 3 transition easier.

(cherry picked from commit f85dfa90b867c80b7a456c07ee03f99c9b71a987)
2021-11-13 17:31:00 -05:00
arkon
e4f493503d Default to only updating non-completed manga
(cherry picked from commit 0a4163d236a971a2c0a5a1f723b308940c755cc3)
2021-11-13 17:30:52 -05:00
Andreas
ab6445d010 Fix SwipeRefresh initial position in MangaController (#6211)
* Lower position of swipe refresh

* Tweak existing code that sets swipe refresh position

(cherry picked from commit 78de11a9e3d0b09698ad7605e798c2ab8a8c7606)
2021-11-13 17:30:44 -05:00
arkon
188f2bf4f2 Use sw720dp for tablet UI threshold
(cherry picked from commit d2fc6d9f44c402263f1811636de103279db04b8a)
2021-11-13 17:30:37 -05:00
arkon
9af4751095 Fix cutoff ripple for extension install cancel button
(cherry picked from commit abf31f4a798f56b859b115cc8c9121e6bd4211a0)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionHolder.kt
2021-11-13 17:30:27 -05:00
arkon
c67193d00f Avoid crashing when notification channels can't be created/deleted
For example, the application may be launched from a service, where channels cannot be deleted.

(cherry picked from commit d4aeeadb26b19d0eccbf9c9adcfd459d7a3927da)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/App.kt
2021-11-13 17:28:03 -05:00
arkon
683c9a9c69 Disable updates badge by default
(cherry picked from commit 7ce0110158d1d6cd05060974395f6d34c0e54b41)
2021-11-13 17:26:28 -05:00
Jobobby04
2e4120d436 Should fix crash with migration 2021-11-07 17:05:31 -05:00
Jobobby04
892f64829b Fix some weird behavior with saved searches 2021-11-02 19:47:20 -04:00
Jobobby04
bfe6ed1c12 Lint 2021-11-02 19:30:38 -04:00
Jobobby04
93f8a42742 Only show push to mdlist if mdlist is logged in 2021-11-02 19:14:18 -04:00
arkon
4d3e4bbea8 Update metadata in same scope as the rest of library update (fixes #5702, probably)
(cherry picked from commit 7c1e55eb7fa7568f99577ae3534a61876842b362)
2021-11-02 19:09:02 -04:00
jmir1
c04550fe15 Fix crash when updating library whithout manga to update (#6181)
(cherry picked from commit 27542bc81d24e08f077af5996dc354bfefac76f5)
2021-11-02 19:08:54 -04:00
arkon
be2e95db38 Clean up local source chapter name cleaning (closes #5969)
(cherry picked from commit 9ebbfb2d908778e993723847bba74a1abcf78281)
2021-11-02 19:08:47 -04:00
arkon
39449b66e1 Fix bottom nav sometimes appearing within navbar area
(cherry picked from commit 701b1ee7445ad5194df3bbbe3babd7a7cfb10590)
2021-11-02 19:08:37 -04:00
arkon
d95833fce7 Move app and extension update notifications to new channels/group (closes #6168)
(cherry picked from commit 0edc981cd2331e70b43ff71f5c23ed74758d934e)
2021-11-02 19:08:30 -04:00
arkon
13f1f37a3e Remove unused fast scroll bubble drawable and accidentally committed file
(cherry picked from commit da5942b398cd015173dce1059fc723d58ef56bf8)
2021-11-02 19:08:21 -04:00
arkon
d699d3899c Move unread chapters badge setting to General section
(cherry picked from commit 709de81814c672aaf5042d1ff6c84c8360563681)
2021-11-02 19:08:15 -04:00
Ivan Iskandar
4ad33540f3 Extension "Update all" button (#6171)
Disabled for legacy installer

(cherry picked from commit 90b312a56e38adb7e161178e00ab1934398f18e0)
2021-11-02 19:08:08 -04:00
Hunter Nickel
951418b576 Add badge to bottom bar Updates tab indicating how many unread chapter updates are available (#5620)
Co-authored-by: arkon <arkon@users.noreply.github.com>
(cherry picked from commit 459759bfe5950db2e7203f5675e422c2014b083d)
2021-11-02 19:08:00 -04:00
Riztard Lanthorn
af6b42cec7 Hide cutout toggle button if fullscreen is off (#6150)
(cherry picked from commit 33a02b47d5e54b207fe2d50cfe0b754db22a6c4b)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/setting/ReaderGeneralSettings.kt
2021-11-02 19:07:29 -04:00
Tom Briden
ec6b6ae779 Fix storing covers for local manga (#6127)
getCoverFile only returns a cover if it already exists, meaning
the block of code to write it from the inputstream never executes.
If getCoverFile returns null, then use previous behaviour of setting
it to cover.jpg so that if the file doesn't exist it's created

(cherry picked from commit f0a5557e603e31a53117c40426237d2340142bc2)
2021-11-02 19:06:35 -04:00
FlaminSarge
23fae05694 Allow manga titles to update from source if they are not in library (#6177)
The previous rationale for not allowing manga titles to update (at all) was that it would be confusing for users if a manga's title arbitrarily changed when the source changed it. Presumably, users would care less about this arbitrary change for manga that is not in library, so this provides a path for getting a manga's title updated, and prevents incorrect titles from persisting in the DB for manga that get title updates but aren't in library.

(cherry picked from commit 58a871c8cc600dbf59691e9c51413ef9b7da3796)
2021-11-02 19:06:09 -04:00
arkon
eb49df6ee8 Validate backup during creation
(cherry picked from commit 4f560717869f5ac9fe0b1626cedf3ce5affce74b)
2021-11-02 19:06:02 -04:00
Andreas
29a24fa047 Change zoom from 3x to 5x (#6164)
Because some people actually read images with really small text

*I hope they have some extreme high quality pictures else I don't know how they read the raster images*

(cherry picked from commit 8f00d34b0b3a5dc30f12ff5a22fd242ade84defe)
2021-11-02 19:05:45 -04:00
arkon
d8407e20da Sync view state with controller on activity resume
Hopefully fixes some weird states where the bottom nav shows up when it shouldn't.

(cherry picked from commit 593091a5e304eff771604ff2a91cdc0c886c4d68)
2021-11-02 19:05:27 -04:00
arkon
e28d72bf9c Minor cleanup
(cherry picked from commit 93e2b88d41143b7485172a29bb40b7ed5478a0ac)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateChecker.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt
2021-11-02 19:05:18 -04:00
Jobobby04
8d291b1bc3 Implement invert double pages 2021-10-23 23:53:30 -04:00
Jobobby04
4d7d451fde Maybe help with double page jankyness 2021-10-23 22:35:07 -04:00
Jobobby04
ef9a4ee643 Launch the download warning toast in the UI thread 2021-10-23 16:44:21 -04:00
Jobobby04
04c683675f Fix MangaPlus errors 2021-10-23 16:36:42 -04:00
Jobobby04
f8d14827da Add some padding to the continue reading button if the lang badge is enabled 2021-10-23 16:30:20 -04:00
Jobobby04
c560b70b83 Fix extra padding if there is no namespace 2021-10-23 16:25:25 -04:00
Jobobby04
aa70a2e6f3 Fix reader slider not doing anything 2021-10-23 15:43:15 -04:00
Jobobby04
07d13aed4e Cleanup MangaPlus stuff, only keep what SY uses 2021-10-23 15:28:28 -04:00
Jobobby04
c0a3406335 fix imports 2021-10-23 14:35:15 -04:00
Jobobby04
0a91597dac Add in library badge to latest and new browse view 2021-10-23 14:25:14 -04:00
Jobobby04
b90f339476 Minor cleanup 2021-10-23 14:25:13 -04:00
Jobobby04
bb409e5ced Workaround for cbz long filename error 2021-10-23 14:25:12 -04:00
Midyan Hamdoun
ed5c3f327c Fix double increment when updating covers (#6138)
* Fix double increment when updating covers

* Remove redundant block

(cherry picked from commit ccd7c8df53a6d14af44b3973aa5f68fafb5fd591)
2021-10-23 14:25:12 -04:00
Jobobby04
72b33a1c52 Tweak mangadex integration 2021-10-23 14:25:11 -04:00
Jobobby04
f2c881cb42 Update WI-FI restriction for EXH update worker 2021-10-23 14:25:10 -04:00
arkon
9840e8ab57 Change tablet UI threshold to w720dp (closes #6054)
Was previously sw720dp. Now matches J2K.

(cherry picked from commit bf1b7f44b641686b012e1d28ca46ed222162df87)
2021-10-23 14:25:09 -04:00
arkon
cdb9768335 Adjust update/download warnings
- Uses toasts now
- Adjusted wording to emphasize effect on sources
- Download warning has a different threshold (15 chapters per source, vs. 60 entries per source for library update)

(cherry picked from commit 538dd60580f1b97993620b05d353db883e44b552)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt
#	app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt
2021-10-23 14:25:08 -04:00
arkon
7849c7970e Minor cleanup
(cherry picked from commit bfe7aa1ed21e1fd789db5a330dba51c622666377)
2021-10-23 14:25:07 -04:00
arkon
5bf424af40 Remove global update intervals below 12 hours, add every 3 day interval
Users with smaller libraries have a lower change of getting updates frequently. "Power users" are actively hurting sources by updating frequently.

(cherry picked from commit 9e2ef82902369908503e860af12e8536a004bd43)

# Conflicts:
#	app/build.gradle.kts
2021-10-23 14:25:07 -04:00
arkon
456fdbe4e9 Make tapping library update and backup restore error notifications open log
(cherry picked from commit 9352e249ee7cfbfefe66aab6856ebb0b0410c403)
2021-10-23 14:25:06 -04:00
Midyan Hamdoun
5802bf7626 Fix crashing when clicking the search icon (#6128)
(cherry picked from commit 38000652306e866e0ad50e380a840120774872da)
2021-10-23 14:25:06 -04:00
arkon
62c0f50314 Remove paused text when resuming downloads with info hidden (fixes #6119)
(cherry picked from commit ebc2c4f73ab6691c545cf2029cb3c82e17b5e0ea)
2021-10-23 14:25:05 -04:00
arkon
cb55a46717 Use natural ordering when sorting by chapter numbers (fixes #6121)
(cherry picked from commit f057440cc1ebfc62bd1d3b85b284781ea9bce9bc)
2021-10-23 14:25:05 -04:00
arkon
819075a8f1 Change global update unmetered connection restriction to connected to Wi-Fi (closes #6117)
(cherry picked from commit 8a70c3353fa6a1851561e7dedf4e9702750ca3af)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsLibraryController.kt
2021-10-23 14:25:04 -04:00
arkon
01778c0c42 Add notification action to open GitHub release page
Co-authored-by: Jays2Kings <Jays2Kings@users.noreply.github.com>
(cherry picked from commit 3d8f123e053c4612cda5feebca3c18f93fff7ae4)
2021-10-23 14:25:03 -04:00
arkon
c4f06d9830 Rename app updating classes
So I stop confusing it for updaters of other things.

(cherry picked from commit 21e647017b629d1ec07a32b548d27342810a2c6b)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/Migrations.kt
2021-10-23 14:25:02 -04:00
Midyan Hamdoun
59d05af9ef Fix reappearing indicator in the History tab (#6105)
(cherry picked from commit 2a1bb3dc27fc78f3fb108801a0fc0e77db4490b5)
2021-10-23 14:25:01 -04:00
Ivan Iskandar
e63bd150e9 Fix AppBar lift state when snapped (#6103)
status bar foreground alpha is now handled separately

(cherry picked from commit 55a3094a65fe65fdb5e4492e319578f6446da23c)
2021-10-23 14:25:01 -04:00
Andreas
bfadfd0fc8 Fix inset not applying when in landscape (#6104)
Reverts inset change from #5997, was changed due to it not changing the padding when using setPadding

(cherry picked from commit b4490e209ba74e657c192dddc983b17e8bc3217a)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryCategoryView.kt
2021-10-23 14:25:00 -04:00
Jays2Kings
70c866d8f3 Use default source filters in global search (fixes #5583)
Based on 45fbd9d2f5

(cherry picked from commit 9aa676333c1e9263138ae0fe55a9152dca33f867)
2021-10-23 14:25:00 -04:00
Ivan Iskandar
28b57f4f42 Fix MangaController fast scroller position (#6090)
(cherry picked from commit bb06895145e0da0e217bf6dd953d9ae4a7f612f2)
2021-10-23 14:24:59 -04:00
Jobobby04
01e4697a04 Fix badges binding 2021-10-23 14:24:59 -04:00
Ivan Iskandar
b116f5e1fd MangaController optimizations (#6089)
* MangaController: Fix ignored stable ids

* MangaController: Replace notifyDataSetChanged

* ChaptersSettingsSheet: Optimizations

(cherry picked from commit 684965f3e56ceb64f8f7be0a23d6a884480eaed2)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt
2021-10-23 14:24:58 -04:00
Jays2Kings
7fb4cd29dc Add migration to add "all" to enabled langauges
Co-authored-by: Jays2Kings <Jays2Kings@users.noreply.github.com>
(cherry picked from commit e621f4e2fa80fec866f244e13d9b594d57f03453)

# Conflicts:
#	app/build.gradle.kts
2021-10-23 14:24:57 -04:00
arkon
6dac25855b Bump queue warning threshold to 60
Aligns with J2K.

(cherry picked from commit 718fa25c108156669b5d6b47ce2b2c219bc48f9b)
2021-10-23 14:24:57 -04:00
arkon
f4d1f5ff95 Minor cleanup
(cherry picked from commit cb9c5a35cb3065bb2c153951861d72c9639d57b3)
2021-10-23 14:24:56 -04:00
arkon
e202c108ff Handle HTTP 403 responses with CloudflareInterceptor
Based on 8d34da591e

Co-authored-by: jmir1 <jmir1@users.noreply.github.com>
(cherry picked from commit fadaefeaef2bfa54d23997e39701f02698cfde67)
2021-10-23 14:24:55 -04:00
arkon
848a2ec4f6 Adjust update/download warning threshold
(cherry picked from commit b17b882a3b79999b82732adc6923499741fa602b)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt
2021-10-23 14:24:55 -04:00
jmir1
def5bdca28 Fix issues with NSFW sources setting (#6085)
(cherry picked from commit f0f3afd5f16b0a95c0080ef6bb7695ef490fd3e9)
2021-10-23 14:24:54 -04:00
arkon
e0a09cdac7 Allow hiding "All" section in extensions list (closes #6081)
(cherry picked from commit 42026b49bfdfd0cc0683be4d7fd11305ed8e74d2)
2021-10-23 14:24:54 -04:00
jmir1
7e11f3952f Fix crash when deleting last item in library (#6079)
(cherry picked from commit 3448751e0e2f1d96d547a019ce2d274c9be5a0e6)
2021-10-23 14:24:52 -04:00
arkon
38f1af7577 Use single layout for grid badges
(cherry picked from commit c95a269460e5aa611b2ca744770334d7ef8c6a55)

# Conflicts:
#	app/src/main/res/layout/source_comfortable_grid_item.xml
#	app/src/main/res/layout/source_compact_grid_item.xml
2021-10-23 14:24:51 -04:00
arkon
806b35d024 Require authentication to toggle showing NSFW sources
(cherry picked from commit f3431318021eeee60c37db7c1a48b30068694b51)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsSecurityController.kt
2021-10-23 14:24:50 -04:00
arkon
8bbaa60a1b Allow searching for multiple extensions at once (closes #5922)
(cherry picked from commit ea34ba53b9d22293af4f7ffd60b021eed237d4a3)
2021-10-23 14:24:49 -04:00
arkon
bedb3f2bd8 Add some info about automatic backups
(cherry picked from commit b8d8cf19d903948bcc5baf91d00a42b8bd904693)
2021-10-23 14:24:49 -04:00
arkon
d9487ea7e9 Add warnings when library and download queues are considered large (closes #5950)
Arbitrarily set at a size of 100 for now. We could adjust this in the future as appropriate if needed.

(cherry picked from commit 082eef708fc50f4b26b499bfd50e9046ec26637a)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/download/Downloader.kt
2021-10-23 14:24:48 -04:00