Commit graph

4022 commits

Author SHA1 Message Date
Jobobby04
3b0523268a Fix build errors 2021-09-12 14:49:52 -04:00
arkon
5c3326e47d Fix scroller getting dragged incorrectly in RTL (fixes #5496)
(cherry picked from commit 7c72d6cb7cefc4d649d453c5f36bd7a10ff8f313)
2021-09-12 14:44:27 -04:00
arkon
f269483072 Don't show option to delete chapters for local manga (closes #5243)
(cherry picked from commit 8362bf0886d5c12e2a588895d470098fedf68529)
2021-09-12 14:44:19 -04:00
arkon
8717c30498 Add link to help translate in about
(cherry picked from commit 1a8155c45b087eca4ecf6283402c5ff2c4cdfbe6)

# Conflicts:
#	app/src/main/res/values/strings.xml
2021-09-12 14:44:10 -04:00
FourTOne5
a4dd13f491 Update ExtensionPresenter.kt (#5895)
(cherry picked from commit 3f2f94601917ddba9eaee1056790490ae8fe5ffc)
2021-09-12 14:43:13 -04:00
arkon
823bd024b7 Minor cleanup for download delete exclusion
(cherry picked from commit 2c14a8dee168b297ecab13894316934916ed03be)
2021-09-12 14:43:05 -04:00
Ivan Iskandar
4a93a93839 Reuse reader's image view in MangaFullCoverDialog (#5824)
* MangaFullCoverDialog: Support animated drawable

* Scaled zoom duration

* Wrap reader's image view to be reused in MangaFullCoverDialog

* Cleanups

* Forgot animated stuff for webtoon view

* Cleanups

* Oopsie

* Cleanups

* Consistent max scale for SubsamplingScaleImageView

The max scale will be obtained from the default scale times 3 for
consistent 3x zoom scale.

(cherry picked from commit 746d35b52be76b1ba75be62cdc1192a769fb9661)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerConfig.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonPageHolder.kt
2021-09-12 14:42:13 -04:00
Jace
f77ac8cb36 Change ProtoNumber of Backup Models for History and Source to a non-zero digit (#5849)
* Change ProtoNumber of Backup Models for History and Source to non-zero

Changed BackupHistory url and BackupSource name properties

* Provide backwards compatibility to current proto backups

- Added data class for zero-based protoNumber
- Restore both 'new' proto and old ones by mapping old to 'new' proto format
- Thanks to @jobobby04  for providing the initial solution.

* Fix on createBackup missing parameter for brokenSource

* Fix issues on build

* Fix missing import on FullBackupRestore

(cherry picked from commit 9a7a03e32744a966f01ad184cad3775b9e715dd8)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupManager.kt
#	app/src/main/java/eu/kanade/tachiyomi/data/backup/full/models/Backup.kt
#	app/src/main/java/eu/kanade/tachiyomi/data/backup/full/models/BackupManga.kt
2021-09-12 13:34:54 -04:00
tobinstultiens
d9d94ed321 Allow exclusion on Delete After Read per category (#5857)
* Added the exclude category from delete after being read

* Stopped it from adding a wildcard to the import

* Placed the remove after read to the download manager

(cherry picked from commit a051079c6a2719e5f7429b289281ea3b3138aace)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadManager.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsDownloadController.kt
2021-09-12 13:33:36 -04:00
Ivan Iskandar
035a1518ad Less hacky way to make sure bottom action toolbar doesn't scroll down (#5871)
* Less hacky way to make sure bottom action toolbar doesn't scroll down

* Fix action toolbar overlapping on landscape

* Disable app bar transparency when ActionMode is present

(cherry picked from commit 7b3c18bb97e1ca6b8889d7aa271d715cfee684d4)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt
2021-09-12 13:10:33 -04:00
Ivan Iskandar
889a61704f MangaController: Fix listeners cancelled when pushing new controller within (#5883)
(cherry picked from commit f41bde5ee1562a1ed46d7ef6f00dc194c5071772)
2021-09-12 13:10:04 -04:00
Gauthier
b7c0c7a094 use chapter_number instead of ordinal index for syncChaptersWithTrackServiceTwoWay (#5846)
use v2 api for Komga tracker for series

(cherry picked from commit 6151318ac18aa816bb01170e101f33a53c19ed70)
2021-09-12 13:09:56 -04:00
Ivan Iskandar
3d71e643e1 MangaController: Title fixes (#5879)
* MangaController: Move toolbar's TextView reference to ElevationAppBarLayout

* MangaController: Update title alpha earlier when exiting

(cherry picked from commit b45c3227291228e9b9a7de0b24f33e97f6c66981)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt
2021-09-12 13:09:49 -04:00
Jobobby04
e38255e895 Migrate to the new mangadex list response 2021-09-12 13:07:18 -04:00
Jobobby04
98f285f777 Cleanup 2021-09-11 11:48:32 -04:00
Jobobby04
982f4d6a97 Debug function to clear watched sources 2021-09-11 11:48:17 -04:00
Jobobby04
972716d884 Only use site specific handlers if data is empty 2021-09-11 11:43:16 -04:00
Jobobby04
6f93fdd089 Cover includes on user follows 2021-09-11 11:42:51 -04:00
Jobobby04
f0329cfafa Improve mangadex title selection 2021-09-11 11:42:19 -04:00
Jobobby04
95e14a9ef9 Cleanup 2021-09-06 16:41:09 -04:00
FourTOne5
c66b57a3b4 Use "isOnline" utils in DownloadService (#5863)
* Use isOnline

* when -> if/else

(cherry picked from commit 156feb6e8effa76431bc3c0baf0c588803869ec8)
2021-09-06 16:40:36 -04:00
arkon
71533fb2bc Read from streams for local source manga details and legacy backups
(cherry picked from commit e942b8a4023be55737d9c11e5e62c7ea9b072c3f)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/backup/legacy/LegacyBackupRestore.kt
#	app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt
2021-09-06 16:40:36 -04:00
Andreas
cf742c65aa Remove the remaining MotionLayout (#5854)
* Remove the remaining MotionLayout

* Use ImageButton instead of Blank View to handle taps in dead area

And some tweaks

(cherry picked from commit abdb67a123d714401ede9760dfae797f37bb8c56)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt
#	app/src/main/res/layout-sw720dp/manga_info_header.xml
#	app/src/main/res/layout/manga_info_header.xml
#	app/src/main/res/xml/manga_summary_section_scene.xml
2021-09-06 16:40:35 -04:00
arkon
2f5718c92f Retain GLUtil.maxTextureSize
(cherry picked from commit ee20787c5e95ef0100e763f5a634b7086ca1fecf)
2021-09-06 16:39:05 -04:00
arkon
97ddafe539 Clean up some companion object usages
(cherry picked from commit ec4e631760607700481d453fef21f38bd4aebf49)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/SourceSearchController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsDownloadController.kt
2021-09-06 16:39:04 -04:00
Aran Leite
0f0937adf5 Skip bookmark check when cancelling downloads (#5853)
* Skip bookmark check when cancelling downloads

* DownloadManager: simplified filteredChapters declaration

* Completed documentation of DownloadManager's deleteChapters()

(cherry picked from commit 02b430a5bf3bdf7db6c9e04fd3f954cce4558d12)
2021-09-06 16:39:03 -04:00
arkon
6eac0f6f98 Fix crash in settings search (fixes #5855)
(cherry picked from commit 7878053df2e7c431f7d7a61b418567e4891bf87f)
2021-09-06 16:39:03 -04:00
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
e734f7d13d Fix chapters getting deleted when marking as unread from library (fixes #5755)
(cherry picked from commit 5ea8d0546e1eed8f799c3e49a50aa2f05d31bb1e)
2021-09-06 16:39:00 -04:00
arkon
f29717272d Minor cleanup
(cherry picked from commit 8a064c118f8661192d15c6b88ad890d044d2d029)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt
2021-09-06 16:39:00 -04:00
arkon
50a9a907de Don't allow focus on reader containers (closes #5727)
(cherry picked from commit 2f91c27df2eec0a86a41936a7185c39424838931)
2021-09-06 16:38:59 -04:00
Soitora
3cb05b1442 Hide language tag when only one language is used (#5834)
* Hide lang tag when only one lang used

* Comment the code

Can't be too useless and do nothing, Ghostbear practically wrote the entire PR for me

* Exclude 'all' from counting as a language

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

* Use existing Preferences directly from Presenter

* Replace regex with an existing value

Co-authored-by: Andreas <6576096+ghostbear@users.noreply.github.com>
(cherry picked from commit 763bd54707ce48ef67a0d5062cfbe014675ef522)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt
2021-09-06 16:38:58 -04:00
arkon
f51f9eb371 Retain scroll position when selecting app theme preference
Co-authored-by: Jays2Kings <Jays2Kings@users.noreply.github.com>
(cherry picked from commit 0de3558ab3d96e9aa38c77d78b78e0870c0b64bf)
2021-09-06 16:38:57 -04:00
arkon
eda451a2e4 Rearrange themes, rename "Blue" to "Legacy Blue"
(cherry picked from commit 069f4e12d8b6a05d647f4fcebf639dd298eca13c)
2021-09-06 16:38:56 -04:00
Quang Kieu
98da48ad73 Edit mangas' Categories in Library using TriState list (#5422)
* Use QuadState Categories to edit mangas in Library

Add updateMangasToCategories to build build correct Categories list for
  each manga using Common and Mix list
Update QuadState Multi-Choice to either Action or Display List
  Display list would have different state sequece from Action
  Uncheck-> Indeterminate (only if initial so)-> Check

fixup manga categories logic as Windows and push request comments

* fixup: Use QuadStateTextView.State enum

Update function to use  QuadStateTextView.State enum that missed in last change

* fixup: missing closing bracket and type cast

Co-authored-by: quangkieu <quangkieu1993@gmail.com>
(cherry picked from commit ee711dc0fb317bf1a661ede66ad392b8d1416274)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt
2021-09-06 16:38:55 -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
Jobobby04
9dc5aedba4 Hide the option to change cover on expand 2021-09-06 16:38:52 -04:00
Jobobby04
cc38579fca Cleanup 2021-09-06 16:38:51 -04:00
Jobobby04
52cdb636c9 MangaDex, add support for Bilibili chapters 2021-09-06 16:38:50 -04:00
Soitora
7e162c99ce
Add SY-specific status icons (#412)
For MangaDex
2021-09-03 16:47:10 -04:00
Soitora
d294bc0b2a Add status icons to manga info (#5832)
* Add icons to manga status

* Slightly better formatting

Mixed in with a dose of syntactic sugar

* Remove unnecessary lines

I think they are, at least

* Change according to review comments

- Fix forgotten Tablet code removal
- Change 'android:background' to 'app:srcCompat'

* Adjust size of icon

Smaller and more fitting to the environment

(cherry picked from commit d935e22f0df88d59e6e527cbc3db5dd7d908df35)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt
2021-09-03 15:28:00 -04:00
Jobobby04
e34c61c750 Manga Info Header onDestroyView 2021-09-03 15:25:24 -04:00
Jobobby04
d9c9ed45bb Orginization 2021-09-01 18:41:16 -04:00
Jobobby04
19a00ce582 Temp fix for clear db, dont click it 2021-09-01 18:41:15 -04:00
Jobobby04
42d8b97f9b Improve loading display of namespace tags 2021-09-01 18:41:14 -04:00
Jobobby04
af4979fcba Fix name mismatch warning 2021-09-01 18:41:14 -04:00
Jobobby04
b571ccccaa Fix tag margins 2021-09-01 18:41:13 -04:00
Jobobby04
94595a99ac Support Comikey chapters 2021-09-01 18:41:12 -04:00
Jobobby04
adc6398589 Fix compiling 2021-09-01 18:41:12 -04:00
arkon
aa144603e2 Use ShapeableImageView for rounded thumbnails instead of Coil transformations
(cherry picked from commit 0e26abf7a63e7d9a9e719ae9e25483c5a6d9b21f)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryListHolder.kt
2021-09-01 18:41:11 -04:00
arkon
4624754895 Added a getting started guide action for when the library is empty
Co-authored-by: Jays2Kings <Jays2Kings@users.noreply.github.com>
(cherry picked from commit b9f7660a91b901ea84fca6dde1655513582d64a0)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt
2021-09-01 18:41:10 -04:00
Ivan Iskandar
7da6af5138 Fix MangaController's loading view initial position (#5827)
Make sure the loading view is hidden before updating the offset.

(cherry picked from commit 18b5250ed1067423f2c4bb0955f14350697afc5b)
2021-09-01 18:41:09 -04:00
nicki
15cd238223 Trim line breaks in manga info only when collapsed (#5818)
* don't trim newlines if summary expanded

* move description trim logic to separate function

* logic error oops

* let's try something

* fix bug on first load

makes it so that, description text is trimmed when entering manga from
library

Co-authored-by: Andreas <andreas.everos@gmail.com>

Co-authored-by: Andreas <andreas.everos@gmail.com>
(cherry picked from commit f683f21ee2daf6787e258b852b847582535221c1)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt
2021-09-01 18:41:09 -04:00
Ivan Iskandar
44b6983b3d Fix animated image detection (#5826)
(cherry picked from commit bd033db84c5b7fe2dbb01886f99c0df456b8f930)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt
2021-09-01 18:41:08 -04:00
Andreas
09a6e3661f Handle small cover better (#5815)
(cherry picked from commit ab036312a488650279bb5dba18550490e7524b15)
2021-09-01 18:41:07 -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
79c3c7f356 Make appearance settings searchable (fixes #5814)
(cherry picked from commit cea1720ea07b60245e55f6ce491a377fe84ae59a)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/search/SettingsSearchHelper.kt
2021-09-01 18:41:06 -04:00
arkon
28a3dfeeea Fix crash when tapping title of "App theme" preference
(cherry picked from commit b77edb2b5b1e2c2f21cfbbc97f8cadbf307e7cc8)
2021-09-01 18:41:05 -04:00
arkon
28ffb9288f Fix reader action sheet not opening
(cherry picked from commit 1b699bb814ac68b72098e09073dd2b6eeb11e569)
2021-09-01 18:41:05 -04:00
arkon
b530216f21 Clean up reader action sheet layout
(cherry picked from commit 333c035fede73d0baca6550d8ce020ffb28f877c)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPageSheet.kt
#	app/src/main/res/layout/reader_page_sheet.xml
2021-09-01 18:41:04 -04:00
Andreas
74437e6809 Replace MotionLayout with full screen dialog (#5806)
* Remove MotionLayout and add full screen dialog for enlarged cover

* Address some of the review comments

(cherry picked from commit e7d6dfff530db08a8380e68425b9f9d11da497cb)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt
#	app/src/main/res/xml/manga_info_header_scene.xml
#	app/src/main/res/xml/manga_info_header_scene_sw720dp.xml
2021-09-01 18:41:03 -04:00
arkon
b916907491 Register TachiyomiImageDecoder after built-in Coil decoders
Not sure if this is related to #5702.

(cherry picked from commit eebfad5a95e8ae88e1ee519c1919d996d924088c)
2021-09-01 18:41:03 -04:00
arkon
b045ee1ba6 Tweak theme preference item UI
(cherry picked from commit 77c0a93ac6dfdfece022928d48464630ee5e46b2)
2021-09-01 18:41:02 -04:00
arkon
5d46569137 Rename Layout category to Navigation
(cherry picked from commit 63a3e126b3b6ef545d62360bb9ca3d7af75fe07a)
2021-09-01 18:41:01 -04:00
Ivan Iskandar
8875c3f9bb Add IME_FLAG_NO_PERSONALIZED_LEARNING flag to text input when incognito is enabled (#5801)
* Add IME_FLAG_NO_PERSONALIZED_LEARNING flag to text input when incognito is enabled

Tested with Gboard only.

* Revert "Add IME_FLAG_NO_PERSONALIZED_LEARNING flag to text input when incognito is enabled"

This reverts commit 068399db

* Add IME_FLAG_NO_PERSONALIZED_LEARNING flag to text inputs when incognito is enabled

Source preference is not affected.

* Source preference stuff

(cherry picked from commit 3ea84cf0ce23d37a1787663834ab9922f10577f8)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/SourcePreferencesController.kt
2021-09-01 18:41:01 -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
arkon
8d757ff37a Clean up track button changes
(cherry picked from commit 925f71af15b777d436cb1f8f7f00f3eae817ec76)
2021-09-01 18:41:00 -04:00
OncePunchedMan
6deab45e80 Tracking: replace tick with button (#5768)
* make check only visible after selecting an item

* replace tick with button and send to bottom

* fixed button visibility

* grey btn out

* resolving some bits

* removing the tick from appbar

* remove useless lines, appl insetter

(cherry picked from commit c666dd623d2efdac2ec5a853cd5761a97ef6fd3a)
2021-09-01 18:40:59 -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
f2a8ee3c20 Tweak theme preference item UI (closes #5805)
(cherry picked from commit edcfa28b0b01dae7718b656b9ad4aa30b26227d9)
2021-09-01 18:40:57 -04:00
Jobobby04
baeec9e2e7 Update to support the latest Mangadex API 2021-09-01 18:40:56 -04:00
arkon
402e494cf7 Group advanced battery optimization setting entries
(cherry picked from commit b5e118e2b4078e53049540fb5c74814ff4bdbf99)
2021-09-01 18:40:56 -04:00
Ivan Iskandar
499b07f988 Remove reader page number inset margin (#5661)
(cherry picked from commit 5aea21a194c427d317368a3687f648b56dd6d0d4)
2021-09-01 18:40:55 -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
nicki
7e8e1fab11
Create Navbar category in Appearance settings (#404)
* add new category for navbar appearance

* update strings for new appearance settings

also adds `pref_category_navbar` for new Navbar settings sub section

* Update SettingsAppearanceController.kt

Co-authored-by: jobobby04 <jobobby04@users.noreply.github.com>
2021-08-27 21:26:22 -04:00
Jobobby04
325ac2b43e Cleanup 2021-08-27 13:13:28 -04:00
Jobobby04
9ddadae078 Use "No Group" properly in mangadex 2021-08-27 12:51:06 -04:00
Jobobby04
c29dc695ae Ktlint ignore some stuff 2021-08-27 12:51:06 -04:00
Jobobby04
ff965efcae Tweak chip stroke weight for E-Hentai manga 2021-08-27 12:51:05 -04:00
Jobobby04
c7a43cb36e Fix wildcard import 2021-08-27 12:51:05 -04:00
Jobobby04
4554813588 Build fixes 2021-08-27 12:51:04 -04:00
Hunter Nickel
cfa6c180e7 Apply system animation scale to parts of Tachiyomi that don't respect it by default (#5794)
* Add initial code for scaling animations, apply scale to reader nav overlay

* Rename extension function, apply system animator scale to ActionToolbar

* Apply system animator scale to expanding manga cover animation

* Apply system animator scale to image crossfade (also disables animated covers when browsing)

* Add documentation, make MotionScene Transition comment a bit more clear

* Disable animated covers in MangaInfoHeaderAdapter if animator duration scale is 0

* Disable animated covers in Library if animator duration scale is 0

* Convert loadAny listener to extension function

(cherry picked from commit df683375b1d7a15c03d315e85d4a0327b49f8ceb)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryComfortableGridHolder.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryCompactGridHolder.kt
#	app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt
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
Soitora
5b18769f70 New manga info expander (#5771)
* Replace "More" with Arrows

We used to have arrows but it was set away from the description which took a lot of space.

It was changed to "More" text, but with the recent design changes I think it'd look better to get a mix between them both.

* Properly align icons

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

* Expand support to Tablets

Get it... expand... hehe 😎

* Fix expanded width

Also fixes so that the constraint for the toggleLess is dependant on the right thing

* Give info toggles its own space

Uses its own margin now to push info rather than just being attached as a info margin.

* Remove weird duplicates I did not add

I did not add these but I don't see a reason to keep dupes

* Add bottom scrim

* Change to centered arrow under info

Anyone wanna experiment/build on top off then feel free to tweak

* Add background glow to icon for contrast

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

Co-authored-by: Andreas <6576096+ghostbear@users.noreply.github.com>
Co-authored-by: Andreas <andreas.everos@gmail.com>
(cherry picked from commit 57aefcd9176450c6413d8e34482fb6c57d120498)

# Conflicts:
#	app/src/main/res/drawable/manga_info_more_gradient.xml
#	app/src/main/res/layout/manga_info_header.xml
#	app/src/main/res/xml/manga_summary_section_scene.xml
2021-08-27 12:51:02 -04:00
Ivan Iskandar
2bc64c2096 Fix reader crash on Android 9 (#5789)
* Fix failed reader context creation on v28

* Re-apply the reader styles manually after overriding night mode

This commit replaces the ThemeCompat.rebase() call since the private API used is
in dark greylist max target P, thus making it unreachable.

* Revert "Fix failed reader context creation on v28"

This reverts commit 6e2104d7

(cherry picked from commit b3854ad3829dbb97831cd8db3defeb967a89334e)
2021-08-27 12:51:01 -04:00
arkon
e8c67999bc Split out appearance settings from general section
(cherry picked from commit 0493e77cff6e71bcdb8ff679440c4d3df434f326)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt
2021-08-27 12:51:00 -04:00
arkon
ae392192f2 Update app theme preference UI
Heavily influenced by TachiyomiJ2K.

(cherry picked from commit 6240fe1dfc9615b0be4bee6e54070e9d21a68b87)
2021-08-27 12:51:00 -04:00
arkon
3fdd433d89 Update tracker services logo layout (closes #5625)
(cherry picked from commit 7094fef37f32c3c598c1808161a59085d27b26d3)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsTrackingController.kt
#	app/src/main/java/eu/kanade/tachiyomi/widget/preference/LoginPreference.kt
#	app/src/main/res/layout/pref_widget_imageview.xml
2021-08-27 12:50:58 -04:00
arkon
3cf1ae0aa4 Use custom tabs instead of browser (closes #5754)
(cherry picked from commit 6c527d52fb3ace3c26ac2b1e25a764e2dd99231d)
2021-08-27 12:50:57 -04:00
Ivan Iskandar
6ac95ffcd6 Add haptic feedback to reader page slider (#5763)
(cherry picked from commit 887b1570564cfc6c6ff5cf7f438ce6c6634df544)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt
2021-08-27 12:50:54 -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
arkon
cc384d1f25 Minor cleanup
(cherry picked from commit 7d2caeb27060e8f14c2192f6e7a8931657976e2c)

# Conflicts:
#	.github/ISSUE_TEMPLATE/report_issue.yml
2021-08-27 12:50:52 -04:00
arkon
015327829d Minor cleanup
(cherry picked from commit b8ea57e097f26403171ac70e90fd67cfb8f7aec0)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/sources/SourceHolder.kt
2021-08-27 12:50:51 -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
Ivan Iskandar
4603465783 Hide reader progress indicator right away (#5750)
The image will be drawn over it so the animation won't be visible anyway

(cherry picked from commit 4eaccc966eba26a47ed3e6d645dcccf8a4edf8ea)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerPageHolder.kt
2021-08-27 12:50:50 -04:00