Commit graph

4200 commits

Author SHA1 Message Date
arkon
5d5df6f502 Don't preselect any options in library remove manga/downloads dialog (closes #6333)
Since apparently people don't read and either option is considered destructive to different people.

(cherry picked from commit cd87c7e88efafd5800b563d51c2ede4a84ad5e4b)
2021-12-11 15:02:18 -05:00
arkon
08d022d5e2 Update notification icons
Although no recent version of Android even shows these....

(cherry picked from commit ed4dea86860d39ba1e7d18c2191f4ee697753f7b)
2021-12-11 15:02:10 -05:00
KieuQ
d5d6f9428c Add download action to New Chapters Notification (#6336)
(cherry picked from commit 808177f8c9385a6f12a0467428384ef02a2456ab)
2021-12-11 15:01:59 -05:00
arkon
d1d8e8ed84 Check if dynamic colors are available using official API
(cherry picked from commit 9b64b0139cf4e768ed70dd0b9bb11078efc8d664)
2021-12-11 15:01:03 -05:00
Carlos Ruiz
1b04ce0ac6 Add sui support (#6318)
* Update shizuku api version

* SettingsAdvanced Controller: Verify if Sui is available

(cherry picked from commit 0a6160d7cf8a343ebe60ec814c42e3272a015d2e)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt
2021-12-11 15:00:55 -05:00
Ivan Iskandar
3a4641f32c SourcePreferencesController: Also call onBindEditText listener set by extension (#6310)
(cherry picked from commit e51a6d332ec61aee94f516f7770e8a8568130cde)
2021-12-11 15:00:08 -05:00
jmir1
83ef443e59 Automatically set tracker as completed after reading the last chapter (#6289)
* Automatically set tracker as completed after reading the last chapter.

* use integer value in comparison

* also set `started_reading` date

* don't use source manga's status

* remove useless line

(cherry picked from commit a9d2741e6ab1f2c54398703a3ae7c0272a458b89)
2021-12-11 14:59:59 -05:00
Ivan Iskandar
81c089299e Tabbed bottom sheet adjustments (#6309)
* SimpleNavigationView: Don't set background and elevation

* Add divider for tabs in bottom sheet

(cherry picked from commit be0a23d9ad6a82ed9b26eaa6248807a80876db63)
2021-12-11 14:59:40 -05:00
Ivan Iskandar
d71ca9ae0f Apply elevation overlay to colored navbar (#6308)
(cherry picked from commit 458a0e608ac9cff97e8152f1a6f9bb4242b69dc2)
2021-12-11 14:59:33 -05:00
Jobobby04
4e9fe9790b Minor cleanup 2021-12-11 14:58:23 -05:00
Jobobby04
693ae6c7be Support Mangadex Nepali 2021-12-07 08:46:39 -05:00
Jobobby04
c5b2aa180e Data saver: Long click a source to exclude, also downloader can be excluded.
Small rewrite of Data saver
2021-12-04 14:12:20 -05:00
Jobobby04
21346eefe2 Minor lint fixes 2021-12-02 20:54:54 -05:00
Jobobby04
42da9abe3e Build fixes after cherry picking 2021-12-02 20:44:05 -05:00
arkon
df07276e20 Avoid loading available extensions list if it seems too small
(cherry picked from commit 6a39c8fc13821a3b6d8f0efd738254154f4b7148)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/extension/api/ExtensionGithubApi.kt
2021-12-02 19:35:35 -05:00
arkon
4a87181d3b Throw exceptions if some of the deprecated source methods are used
(cherry picked from commit be4f27028c8abfd5f115909bee4024160c3c3fc3)
2021-12-02 19:30:10 -05:00
arkon
c49c2b28eb Allow loading extension-lib 1.3
(Which doesn't actually exist yet, but will at some point after the next major release)

(cherry picked from commit 60e73e2d1f89e254616fb5659d9f53f6399bbdba)
2021-12-02 19:30:02 -05:00
arkon
586bd3301d Add convenience extension functions for rate limit interceptors
To be included in extension-lib 1.3 as a replacement for the lib that's currently compiled in tachiyomi-extensions.

(cherry picked from commit e8f284d377ebe6930e147cd36494020d4ae96f47)
2021-12-02 19:29:56 -05:00
arkon
a3a27dc1c6 Add UnmeteredSource interface
To be included in extension-lib 1.3 (or whatever it's going to be). This applies to sources like Komga or Lanragi, where large numbers of update/download aren't of concern since they're (usually) self-hosted.

(cherry picked from commit 3ea3b0bf2ecc3f74a790af2012dd4f4a6b2ab3f7)
2021-12-02 19:29:50 -05:00
jmir1
b2b5854910 Fix local source cover changing (#6252)
* fix local source cover changing

* Remove unnecessary check for `exists()`

* fix for when there is no thumbnail_url in the db

(cherry picked from commit 10ddeeb7999214f1ed2fa579dadab7e9e379c1a6)
2021-12-02 19:29:08 -05:00
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