Commit Graph

2361 Commits

Author SHA1 Message Date
Andreas
5cddc0c387
Add filter for tracking (#4276)
* Add filter for tracking or not

* Use .any

* Access database only when needed
2021-01-17 15:40:17 -05:00
arkon
3319ccfd41 Move ACRA endpoint config to build.gradle.kts 2021-01-17 11:09:29 -05:00
arkon
878008e93b Reimplement MAL start/end date support 2021-01-16 16:03:19 -05:00
arkon
0cd551d4fd Revert removal of tracker start/end date 2021-01-16 15:48:20 -05:00
arkon
f85194ec46 Handle download cancelation from icon properly (fixes #4241) 2021-01-16 15:48:02 -05:00
arkon
271489bdfd Fix display mode not updating in source view 2021-01-16 11:30:27 -05:00
arkon
189f18b112 Simplify lookup for existing MAL list item 2021-01-16 10:51:17 -05:00
arkon
9670863a41 Show error when trying to download chapters from not installed source (closes #4283) 2021-01-10 11:11:53 -05:00
arkon
c9cf9cfff0 More coroutine tweaks 2021-01-10 11:01:10 -05:00
arkon
2ffbee3db2 Avoid using global scope where appropriate
Also fixes the crash in tracking when an exception is thrown during a refresh.
2021-01-08 18:05:51 -05:00
arkon
8e613d03e3 Address coroutine scope leaks in custom views 2021-01-07 19:16:26 -05:00
arkon
b18a794eca Use lifecycleScope directly 2021-01-07 19:12:30 -05:00
arkon
c620c924f9 Revert "Use flows instead of relays for extensions loading"
This reverts commit 07e76f35fa.
2021-01-07 19:06:34 -05:00
Andreas E
9db81a5a49
Fix navigation from feedback (#4238)
* Fix navigation from feedback (fixes #4237)

* Add additional enum values to NavigationRegion mainly for PagerViewer

Co-authored-by: arkon <arkon@users.noreply.github.com>
2021-01-07 19:05:38 -05:00
arkon
6fb7a85e8a Address more coroutine scope leaks 2021-01-07 18:15:57 -05:00
inorichi
36f81b4a62 Minor fixes regarding leaks 2021-01-07 15:19:00 +01:00
arkon
2caecc01b2 Fix crash when no chapters can't be loaded 2021-01-06 14:21:55 -05:00
arkon
2c9f8bb9ce Revert bad RxJava conversion that prevented tracking data to be updated in UI 2021-01-04 16:25:19 -05:00
arkon
efbefabb01 Reword unmetered network restriction for library updates 2021-01-04 16:12:34 -05:00
arkon
990fb22d3e Remove usage of RxJava from backup/restore 2021-01-04 15:30:05 -05:00
arkon
df7e0d2f2f Surface "NSFW" (includes things like ecchi) results in MAL search (closes #4249) 2021-01-04 15:16:08 -05:00
arkon
5cfda1b1bf Refactor bridged RxJava/coroutine calls in SearchPresenters 2021-01-04 15:08:36 -05:00
arkon
ac9bf1f3ff Refactor bridged RxJava/coroutine calls in MangaPresenter 2021-01-04 14:55:28 -05:00
arkon
7eb0868791 Remove use of RxJava from TrackPresenter 2021-01-04 14:47:23 -05:00
arkon
8a792e6d76 MAL: add way to search by list items' titles 2021-01-04 14:30:04 -05:00
arkon
95ce0e39ef Fix malformed extension URLs 2021-01-04 12:14:02 -05:00
arkon
17b70ab38c Refactor Kitsu API to remove Retrofit usage 2021-01-04 12:13:14 -05:00
arkon
07e76f35fa Use flows instead of relays for extensions loading 2021-01-04 11:09:31 -05:00
arkon
c06a932c95 Remove some OptIn annotations 2021-01-04 10:22:26 -05:00
arkon
7d713b87b1 Fully remove usages of RxJava from tracker classes
TODO: refactor usages to coroutines as well
2021-01-03 23:41:36 -05:00
arkon
2d0a5eb02c Convert more TrackService methods to coroutines 2021-01-03 23:33:21 -05:00
arkon
8d68859c2a Change MAL ID search prefix to "id:" 2021-01-03 23:21:45 -05:00
arkon
d11c72fd48 Replace global search context menu option with share target 2021-01-03 11:08:23 -05:00
arkon
135cf9960f Minor cleanup 2021-01-03 10:54:09 -05:00
Andreas E
3bf7c74f93
Navigation settings and split invert tapping for webtoon and pager (#4233) 2021-01-03 10:50:38 -05:00
Riztard Lanthorn
cea4911c4d
add date Format (#4236) 2021-01-03 10:47:23 -05:00
arkon
54dc01253d Replace usages of fetchChapterList with 1.x getChapterList API 2021-01-01 19:19:11 -05:00
arkon
4db9a90da2 Replace usages of fetchMangaDetails with 1.x getMangaDetails API 2021-01-01 19:08:12 -05:00
Andreas E
d69e9034ab
Viewer navigation (#3869)
* Viewer navigation

Co-authored-by: Harsh Parekh <h.x.dev@outlook.com>

* Match current reader behavior and add ability to invert it

* A bit of clean up

* Clean up inversion

* Only create navigator when changed

and change tap zone when invertTapping is changed

* Clean up PagerConfig

* Change how Viewer navigation works

* Add Edge Navigation

Co-authored-by: Harsh Parekh <h.x.dev@outlook.com>
2021-01-01 18:41:20 -05:00
Clarence Castillo
71ece73d99
Direct user back to global search when coming from source search results (#4196) 2021-01-01 16:46:44 -05:00
arkon
3bb2102eb4 Include source name in backup restore error logs (closes #4230) 2021-01-01 16:43:32 -05:00
arkon
b7914909d0 Remove some unnecessary coroutine dispatcher switching 2020-12-31 18:37:43 -05:00
arkon
63398fe491 Implement click events for chapter download icons 2020-12-31 18:14:51 -05:00
arkon
bf32bf28da Use coroutines instead of rx for some MangaPresenter operations 2020-12-31 17:45:59 -05:00
arkon
dcb6bfb18d Remove some unused variables 2020-12-31 16:41:09 -05:00
arkon
141f9b7730 Handle last read page being above total page count (fixes #4010) 2020-12-31 11:21:39 -05:00
arkon
139a589ad6 Increase per-page limit when searching MAL manga list 2020-12-31 10:58:40 -05:00
arkon
591873a185 Update preview build links (fixes #4225) 2020-12-31 10:52:20 -05:00
arkon
97a308b114 Minor cleanup of some tracker observables 2020-12-31 10:51:23 -05:00
arkon
430714e67f Find existing entry in MAL list when binding 2020-12-31 10:50:50 -05:00
arkon
a49adbd09c Add ID search workaround for MAL tracking 2020-12-30 15:08:10 -05:00
arkon
3df98d576e Fix crash on updating trackers after reading with no network (closes #4207) 2020-12-29 09:21:18 -05:00
arkon
cef1c4b8a1 Tweak manga info header backdrop 2020-12-27 17:58:03 -05:00
arkon
2e8791a101 Refactor tracker response parsing 2020-12-27 17:46:14 -05:00
arkon
0e2b8b10d1 Show download progress in download icons 2020-12-27 16:50:25 -05:00
arkon
3cb64669e4 Animate download icon 2020-12-27 16:41:28 -05:00
arkon
bc0d32f330 Add Telugu to language setting 2020-12-27 15:50:37 -05:00
arkon
6378a41b6d Minor cleanup of UpdatesHolder 2020-12-27 15:34:14 -05:00
arkon
23bf7faf9f Hide chapter download icons for local manga 2020-12-27 15:25:40 -05:00
arkon
01ff3af63f Add error state to chapter download icons 2020-12-27 10:44:08 -05:00
arkon
8f98055e9e Refactor response parsing helper function 2020-12-27 10:22:24 -05:00
arkon
84ae61f72c Refactor download states into enum 2020-12-27 10:20:14 -05:00
arkon
6dd280205b Initial chapter download icon implementation 2020-12-27 10:13:13 -05:00
arkon
1365d553a4 Log exception on invalid download directory issue 2020-12-26 18:05:39 -05:00
arkon
61a594493c Remove usage of Retrofit for update check and extensions list 2020-12-26 16:59:24 -05:00
arkon
62ab70f889 Remove unnecessary BaseWebViewActivity class 2020-12-26 11:44:21 -05:00
arkon
eaccfdde59 Replace circular ProgressBars with Material component 2020-12-26 11:24:10 -05:00
arkon
be3e31ddc4 Try to avoid crashing when unable to get backup filename for some reason 2020-12-26 10:40:45 -05:00
arkon
ea33179a95 Convert tracker add/update/login methods to coroutines 2020-12-24 17:50:28 -05:00
arkon
6fcf6ae1f5 Use coroutines for Bangumi and Shikimori APIs 2020-12-24 17:23:10 -05:00
arkon
f2a9247b68 Remove usage of Gson in Kitsu tracker 2020-12-24 17:02:33 -05:00
arkon
dc3ed7fffc Use coroutines for Anilist API 2020-12-24 16:55:04 -05:00
arkon
271de31d51 Migrate Kitsu API to coroutines and kotlinx.serialization 2020-12-24 16:39:28 -05:00
arkon
1268caf3e0 Make OkHttp coroutine calls always throw exceptions on errors 2020-12-24 15:36:57 -05:00
arkon
c0cef58e39 Surface MAL HTTP errors properly 2020-12-24 15:09:10 -05:00
arkon
d363d205c3 Fix trackers after MAL not updating 2020-12-21 17:31:31 -05:00
arkon
2fd5a9e883 Filter out novels from MAL search results 2020-12-21 17:24:35 -05:00
arkon
e7ef974a39 Format MAL search result status/type better 2020-12-21 17:24:25 -05:00
arkon
0b62fa8b76 Bump versionCode so next build will force MAL logout 2020-12-21 17:10:08 -05:00
Taco
e2054a0ab7
Update NDK & buildTools, fix deprecated Parcelize (#4157)
* Update buildTools and NDK

* Fix deprecated Parcelize
2020-12-19 18:40:44 -05:00
arkon
6e7fefb8b2 Strip out no longer used tracker start/end date code
Unfortunately MAL was the only one that supported it in the app, but the official API doesn't support it, so now no trackers have it.
2020-12-18 23:31:28 -05:00
arkon
450bef278b Add forced MAL logout for next release migration 2020-12-18 23:20:42 -05:00
arkon
0affc0d58b Migrate to official MyAnimeList API (closes #4140) 2020-12-18 23:18:31 -05:00
arkon
3d153b6c8e Don't surface hidden settings when searching 2020-12-15 23:17:20 -05:00
arkon
04fff91e23 Update app repo URL 2020-12-15 15:56:16 -05:00
arkon
28a23452f2 Update extensions repo URL 2020-12-15 15:48:06 -05:00
arkon
6d403851cf Apply theme to OAuth login redirect activities 2020-12-14 23:00:01 -05:00
arkon
395a749bce Misc tracker code cleanup 2020-12-14 22:56:33 -05:00
arkon
2cc2a90941 Refactor CustomTabsIntent creation 2020-12-13 22:30:27 -05:00
arkon
c5ca739b49 Fix loading fallback thumbnails in browse view (closes #4127) 2020-12-13 20:47:48 -05:00
arkon
00fe4cdf2d Minor code cleanup 2020-12-13 18:11:18 -05:00
arkon
69be3e1e87 Complete migration off of Kotlin synthetics 2020-12-13 18:01:51 -05:00
arkon
2cb3984d68 Show MAL relogin message on update, localize error message 2020-12-13 17:52:21 -05:00
arkon
5901978889 Use view binding for date headers 2020-12-13 17:47:29 -05:00
arkon
4880741b8b More crash fixes 2020-12-13 17:18:28 -05:00
arkon
e8627800fe Remove bundled fallback file picker 2020-12-13 12:42:10 -05:00
arkon
907fbb94a2 Require WebView 86+ 2020-12-13 11:27:05 -05:00
arkon
fd2028557e Some crash fixes 2020-12-13 11:00:46 -05:00
arkon
91fa1ec6b2 Suppress some deprecation warnings 2020-12-12 23:50:28 -05:00
arkon
bbc00768f0 Note that toggling NSFW sources requires a restart 2020-12-12 17:27:11 -05:00
arkon
5b09461ccf Break out NSFW hiding/labeling into separate settings 2020-12-12 17:20:54 -05:00
arkon
1a439ecece Remove source overwrite logic since built-in sources no longer exist 2020-12-12 16:15:18 -05:00
arkon
836aec4396 Flip left/right key events for Webtoon viewer (fixes #4111) 2020-12-12 15:50:56 -05:00
arkon
0b5dec9bab Revert "Hide incomplete NSFW source labelling settings"
This reverts commit a3b1690d38.
2020-12-12 11:32:55 -05:00
arkon
a3b1690d38 Hide incomplete NSFW source labelling settings 2020-12-12 11:28:50 -05:00
arkon
a3bad75899 Force MAL logout on update 2020-12-12 11:26:42 -05:00
arkon
c950595fe3 Revert "Distinguish between no results and loading when sorting global search results"
This reverts commit 2be9871d05.
2020-12-11 21:58:04 -05:00
arkon
8ffd3a8ed2 Don't scroll to top when navigating back/forward in WebView 2020-12-10 09:15:09 -05:00
arkon
b6e246c6b2 Add text selection shortcut to invoke global search (closes #4058) 2020-12-08 22:48:04 -05:00
arkon
59859e124f Update to Kotlin 1.4.21 and kotlinter 3.3.0 2020-12-08 22:31:48 -05:00
arkon
2bb7a33bc3 Use WebView auth flow for MAL (fixes #4100) 2020-12-08 22:21:23 -05:00
Taco
c2b8fea291
Update libraries, some lints (#4099)
* Update some plugins

* Fix some miscellaneous lints
2020-12-08 22:21:08 -05:00
arkon
560f0bba5c Use more up-to-date fork of junrar 2020-12-07 22:13:53 -05:00
arkon
8a44b1dabe Add Galician locale 2020-11-29 17:14:05 -05:00
arkon
b39191ff50 Fix annotations package name 2020-11-29 17:08:20 -05:00
arkon
6664dfb048 Use regular minified extensions JSON instead of explicitly handling gzip encoding
Turns out GitHub *does* do gzip encoding by default, it just doesn't show up in the header logs for some reason...
2020-11-29 16:01:16 -05:00
arkon
3133a63cf8 Fix crash when a preference doesn't have a title (e.g. info preference) 2020-11-29 15:01:13 -05:00
Andreas E
c9c0f3d014
Enhance incognito mode (#4073)
* When in Incognito Mode don't set lastUsedSource

* When in Incognito Mode don't save chapter progress

Still allows tracking and mark as read when reaching last page

* When in Incognito Mode don't mark as read (overwritten if hasTrackers)
2020-11-29 11:15:15 -05:00
arkon
e048d66f74 Revert edge to edge
This was a bigger headache than it was worth. To note, phone landscape wasn't considered, so the navbar overlaps the content on the side. Additionally, the ability to programatically control the navbar scrim is missing, so it'd have to manually be added.
2020-11-29 11:08:06 -05:00
arkon
66e3fa7df8 Replace more Kotlin synthetics 2020-11-29 11:07:06 -05:00
arkon
019a0f31c7 Replace more Kotlin synthetics 2020-11-28 15:54:53 -05:00
arkon
749c2071af Replace Kotlin synthetic views in viewholders 2020-11-28 15:24:40 -05:00
arkon
322d66d282 Replace more usages of Kotlin synthetic views 2020-11-28 14:56:57 -05:00
arkon
aa98cd0da0 Fix keyboard sometimes affecting bottom inset padding 2020-11-28 13:02:15 -05:00
arkon
c8316c7254 Move NSFW source setting into Browse settings 2020-11-28 12:43:17 -05:00
arkon
6b9180844d Fall back to filename in backup creation notification if path not available 2020-11-27 21:38:26 -05:00
arkon
c0e4863229 Fix restore in Android 11 2020-11-27 21:36:42 -05:00
arkon
2be9871d05 Distinguish between no results and loading when sorting global search results 2020-11-27 21:09:44 -05:00
arkon
776f6a9a16 More bottom inset padding fixes 2020-11-27 21:05:06 -05:00
arkon
60b2a4ea9d Handle bottom insets in FAB controllers too 2020-11-22 23:08:41 -05:00
arkon
56e1e3e205 Further abstract how bottom navbar padding is applied 2020-11-22 22:57:58 -05:00
arkon
0f805cd45e Handle bottom navbar padding when drawing edge to edge 2020-11-22 22:48:38 -05:00
arkon
1d7c692e89 Create extension function for applying system insets 2020-11-22 22:30:25 -05:00
arkon
38bc8ec6b4 Add global search progress bar (closes #3727) 2020-11-22 16:54:19 -05:00
arkon
2154e3aa2d Remove 10 results per source limit from global search (still limited to 1 page) 2020-11-22 16:40:53 -05:00
arkon
56c19e57a9 Add help shortcut for source migration (closes #3951) 2020-11-22 16:30:20 -05:00
arkon
3fa70dade3 Use ViewCompat for setting MainActivity inset paddings 2020-11-22 15:13:12 -05:00
arkon
368c30a2cc More restore code cleanup, remove some SY-specific logic 2020-11-22 12:43:23 -05:00
arkon
781971ee81 Set preview/experimental compiler flags instead of using annotations 2020-11-22 11:43:16 -05:00
arkon
1140316d1b Pad bottom of MoreController so bottom nav doesn't overlap content 2020-11-21 18:11:17 -05:00
arkon
cf6c48744a Some more code cleanup 2020-11-21 15:30:04 -05:00
arkon
eed6db8e92 Default automatic legacy backups to true for now 2020-11-21 15:12:04 -05:00
arkon
858664bfd7 Some more code cleanup 2020-11-21 15:09:56 -05:00
arkon
eceac4d6e3 Merge restore entry points, avoid unnecessary new strings 2020-11-21 12:35:04 -05:00
arkon
47a172df1f Remove "full_" from v3 backup default file names 2020-11-21 12:22:46 -05:00
arkon
f2c0732c40 Minor cleanup 2020-11-21 12:22:25 -05:00
jobobby04
682fae12b6
Make a protobuf based backup system (#3936)
* Make a protobuf based backup system

* Cleanup

* More cleanup

* Fix restores always loading the full backup restore, even when legacy restore was used

* Make offline the default

(cherry picked from commit f6fd8a8ddb90869f3e28fd8fcd81a2125f8e0527)

* Find chapter based on the url

(cherry picked from commit 326dc2700944a60da381d82cd9782c5f0d335902)

* Dont break after finding one chapter

(cherry picked from commit f91d1af37398619cf371e4920b60f6d309799c74)

* Also apply changes to online restore

(cherry picked from commit e7c16cd0d14ea5d50ce4a9a3dfa8ca768be702f2)

* Rewrite backup categories

(cherry picked from commit f4200e2146a9c540675767206ed4664894aa1216)

* Dedupe some code, move over read and bookmarks properly

(cherry picked from commit d9ce86aca66945c831670a1523d8bc69966312df)

* Move some functions to the abstract backup manager

(cherry picked from commit b0c658741a2f506bc31823f1f0347772bc119d2e)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupManager.kt
#	app/src/main/java/eu/kanade/tachiyomi/data/backup/legacy/LegacyBackupManager.kt

* Fix some backup duplication issues

(cherry picked from commit a4a1c2827c4537d2d07a0cb589dc1c3be1d65185)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/backup/legacy/LegacyBackupManager.kt

* Fix a missed bundleOf

* So glad this wasnt merged before now, everything should be working with this commit
2020-11-20 22:34:24 -05:00
arkon
a150762c63 Fix manga info description scrim on Android 5 2020-11-20 22:28:06 -05:00
Dominik Chrástecký
c9b1a425a7
add support for S Pen actions (#4029) 2020-11-20 22:25:24 -05:00
arkon
122b2b1a8e Draw under navbar in Android 9+ 2020-11-15 13:30:49 -05:00