Commit Graph
56 Commits
Author SHA1 Message Date
Ivan Iskandar 7a1b6142df Use correct color for reader loading indicator (#5645)
Night theme color will be used when black or gray background color is used.
2021-08-06 14:22:04 -04:00
Ivan Iskandar bcaa9674fe Fix forced secure screen disabled after disabling incognito (#5634) 2021-08-05 17:52:20 -04:00
Ivan Iskandar 40aa3b7e18 Fix wonky webtoon layout when image is loaded at the top of the screen (#5660) 2021-08-05 17:51:03 -04:00
Ivan Iskandar 5aea21a194 Remove reader page number inset margin (#5661) 2021-08-05 17:50:37 -04:00
Ivan Iskandar ff2a4e6952 Change BottomNavigationView behavior (#5603)
Similar to app bar's scroll behavior
2021-07-31 12:05:24 -04:00
Ivan Iskandar a3090e62f5 Fix reader activity not using preferred language (#5630) 2021-07-30 18:13:50 -04:00
Ivan Iskandar 39b7024be0 Fix webtoon page takes up entire screen even if it's smaller (#5622) 2021-07-29 09:16:01 -04:00
Ivan Iskandar cc55453076 ReaderProgressIndicator: Set indeterminate as default state (#5605)
Will also set to indeterminate if progress is 0.
2021-07-27 17:30:35 -04:00
Ivan Iskandar 00ac632d8f Fix list scrolling on quad-state dialog (#5602) 2021-07-24 12:14:46 -04:00
Ivan Iskandar c42d517f6b Apply default night mode earlier (#5593) 2021-07-24 11:14:25 -04:00
Ivan Iskandar 6ba779fb7a Reader loading progress indicator changes (#5587)
* Use CircularProgressIndicator on PageHolder

Manually rotate the CircularProgressIndicator inside a wrapper view instead of
drawing our own custom indicator.

* Use CircularProgressIndicator on TransitionHolder
2021-07-20 17:38:19 -04:00
Ivan Iskandar be28e0b559 Fix incorrect saved tracker dates (#5581) 2021-07-19 17:45:46 -04:00
Ivan Iskandar 116fec208b Fix light navigation bar not applied on first launch (#5582)
No need to touch light system bars when running the splash screen since
they're not that noticeable, and it also breaks on some ROMs.
2021-07-19 17:45:28 -04:00
Ivan Iskandar fece92e15a Fix transparent system bars after MainActivity recreated (#5574) 2021-07-18 15:20:19 -04:00
Ivan Iskandar b2d58e04d2 Add Dynamic theme for Android 12 (#5569)
* Add Dynamic theme for Android 12

* Also theme text colors
2021-07-18 13:01:58 -04:00
Ivan Iskandar 05e7b0dc22 Fix splash screen icon on Android 12 (#5565)
* Use Core Splashscreen for splashscreen stuff

* Keep splash screen until activity ready

Ready as in the data inside starting screen is finished showing

* Use custom splash screen exit animation on older android version

* Add splash screen minimum duration to prevent exit jank

* Fix broken AMOLED theme

* Improvements
2021-07-17 12:06:15 -04:00
Ivan Iskandar ef84ed4982 Bump compileSdk to 31 (#5563) 2021-07-16 09:18:32 -04:00
Ivan Iskandar b7c2890250 Don't show navigation overlay if tap navigation is disabled (#5534)
* Don't show navigation overlay if tap navigation is disabled

* Apply feedback
2021-07-15 08:44:53 -04:00
Ivan Iskandar ae97bb0445 Replace material-dialogs usage with Material Components' (#5423)
* Use Material Components' dialogs

For all dialogs that has direct replacement.

* Convert text input dialogs

* Convert quad-state multi choices dialogs

* Convert date picker dialogs

This also changes the flow to remove selected start/finish tracking date and
the track item itself

* Remove material-dialogs dependencies
2021-07-14 18:04:03 -04:00
Ivan Iskandar 2423a70abd Fix incognito mode disabled after URL intent launched (#5533) 2021-07-12 09:57:28 -04:00
Ivan Iskandar 1ef7722504 Support more image formats for covers (#5524)
* Add TachiyomiImageDecoder for Coil

Is currently used to decode AVIF and JPEG XL images.

* LocalSource: Check against file name for cover

This allows file with all supported formats to be set as cover

* TachiyomiImageDecoder: Handle HEIF on Android 7 and older
2021-07-10 15:44:34 -04:00
Ivan Iskandar 37d30eb887 Simplify locale override (#5509) 2021-07-07 18:11:52 -04:00
Ivan Iskandar 64b1c9636b Track search dialog adjustments (#5479)
* Add clear text button to track search dialog text input

* Track search item adjustments
2021-07-03 09:44:12 -04:00
Ivan Iskandar 0eadc028b6 Merge light and dark themes (#5470)
* Merge AMOLED and regular dark themes

This allows all variants of dark themes to use black backgrounds as a
separate preference.

* Merge light and dark themes

* Fix ReaderSeekBar color on Dark Blue theme

* Color fixes

* Fix Dark Blue bars ripple

* Simplify night mode check
2021-07-02 08:44:04 -04:00
Ivan Iskandar 82f3677168 Fix reader toolbar alpha applied to other components outside its activity (#5483) 2021-07-01 18:11:44 -04:00
Ivan Iskandar cb71d44024 Tracking sheet and search adjustments (#5427)
* Tracking sheet and search visual adjustments

* Remove track item divider

* Add start margin to "add tracking" button

* Fix track search dialog crash when no item chosen

* Show "remove" action only when track item is previously set

* Remove placeholder for total chapters

* Cleanups

* Add track search error/empty result message

* Make track search dialog fullscreen

* Use AutofitRecyclerView for track search dialog

* Fix text input overlapping

* Run track search from IME action instead

* Remove deprecated method

* Reformat

* Set track search error message on the placeholder

* Use payload to notify track search item change

* Fix track search action icon tint color
2021-06-28 11:33:26 -04:00
Ivan Iskandar e2cf157857 Reader fixes after #5450 (#5465)
* Fix ReaderActivity system bars behavior

* Fix ReaderActivity transition view text color

* Don't change reader navbar color when windowLightNavigationBar is not available
2021-06-27 11:39:26 -04:00
Ivan Iskandar 64c95305b9 Match ReaderActivity theme with the rest of the app (#5450)
* Match ReaderActivity theme with the rest of the app

* Fix viewer inset when fullscreen reader is off

* Fix incorrect toolbar color after recreate

* Remove animated inset

* Move isDarkMode to PreferencesHelper
2021-06-25 23:28:19 -04:00
Ivan Iskandar c3fb5af3fc Fix issues on older API versions and tablets (#5433)
* Fix tablet's navigation rail and toolbar color

* Fix tracking sheet crash on older APIs

* Fix settings crash on older APIs
2021-06-20 11:05:37 -04:00
Ivan IskandarandSoitora 932c92412c More themes cleanup (#5410)
* More themes cleanup

* Tweak some things

* Fix 'Clear History' icon

* Split out ripple colored to its own drawable

* Tidy up things

* Unify background dim amount

* Use primaryColor for Account login button

* More colored ripples

* use colorOnPrimary for selected comfortable library item title

Co-authored-by: Soitora <simon.mattila@protonmail.com>
2021-06-19 15:45:16 -04:00
Ivan Iskandar ab73e98075 Fix incorrect toolbar text color after theme change (#5388) 2021-06-17 08:53:38 -04:00
Ivan Iskandar 73e5e9ecd9 Add background to draggable items (#5353) 2021-06-09 17:16:59 -04:00
Ivan Iskandar 31d96c2bf0 Fix download status not updated properly after starting batch download (#5348) 2021-06-08 11:18:56 -04:00
Ivan Iskandar fb8aafb69f Enable secure screen when incognito mode is enabled (#5339)
* Enable secure screen when incognito mode is enabled

* Fix incognito banner not showing up after configuration changes
2021-06-07 22:41:12 -04:00
Ivan Iskandar 3527dedc99 Coil: Caching adjustments (#5311)
* Coil: Enable disk cache for source items

* MangaCoverFetcher: Let Coil's OkHttp client handle caching for non-library cover
2021-06-06 10:30:26 -04:00
Ivan Iskandar 5bb1f72c28 Use existing vector icon for splash screen (#5230) 2021-05-30 11:15:20 -04:00
Ivan Iskandar 9de07c11a6 Adjust chapter download button visual (#5213)
* Removed the blinking icon and added back the indeterminate indicator for
queued items
* Make the downloading indicator a solid circle
2021-05-28 22:38:03 -04:00
Ivan Iskandar 9f744bc445 More bottom sheet improvements (#5183)
* Edge-to-edge bottom sheet when possible

* ReaderSettingsSheet: Animate background dim changes

* Adjust modal bottom sheet in-out animation

* Use public method to get bottom sheet behavior

* Set bottom sheet peek size to 50% screen height

The current auto peek height gives too low value on landscape orientation

* Set bottom sheet navigation bar scrim when needed
2021-05-28 22:36:09 -04:00
Ivan Iskandar 69869115f6 TabbedBottomSheetDialog: Fix scrollable pages (#5173) 2021-05-24 16:08:43 -04:00
Ivan Iskandar b5a700276a Remove top margin of PreferenceCategory if no title set (#5168) 2021-05-24 09:10:13 -04:00
Ivan Iskandar 3c186a3c8d Fix incognito mode disabled after the app kicked out of memory (#5167)
The application class onCreate will also be called when user navigates to an
activity after the app process is killed by the system.

So make sure the incognito is disabled only when the entry point of the app is
created from scratch (e.g. after being force closed by the user).
2021-05-24 09:09:35 -04:00
Ivan Iskandar ef8a87a30f Bump compileSdk to 30 (#5140) 2021-05-22 14:48:27 -04:00
Ivan Iskandar 89fb943733 Reinstate Proguard/R8 (#5134)
* Reinstate Proguard/R8

According to APK analyzer
Before: 18044 classes with 113387 methods in 3 dex files
After: 12604 classes with 68010 methods in 2 dex files
APK download size is reduced by 2.8 MB

* Add debug build type without R8
2021-05-22 14:47:40 -04:00
Ivan Iskandar afd59eabbb Remove material-design-dimens (#5133) 2021-05-22 10:10:41 -04:00
Ivan Iskandar 818468c58f Open migrated/copied MangaController right away (#5005) 2021-05-13 17:36:05 -04:00
Ivan Iskandar cb203ef02c Show notification to disable Incognito Mode when it's enabled (#4976)
* Show notification to disable Incognito Mode when it's enabled

* Finish ReaderActivity and BrowseSourceController when incognito is disabled

* CLeanup strings

* Only register DisableIncognitoReceiver when needed
2021-04-30 22:36:54 -04:00
Ivan Iskandar 93e6136795 Use Coil (#4870)
* Use Coil

* Remove coil-transformations lib

* Add MangaCoverFetcher

* Remove Glide

* MangaCoverFetcher: Allow skipping custom cover usage

* Adjust coil caching policy for some non-library items

* Allow coil to use RGB565 only on low ram devices

* Fix image loading progress view not showing

a

* Increase coil crossfade duration

Same as default glide duration

* Add back request clearing
2021-04-28 08:32:00 -04:00
Ivan Iskandar dad3292bdd Use adaptive icon for app shortcuts (#4968)
Also swap the color
2021-04-27 17:30:17 -04:00
Ivan Iskandar bf80dd622c Fix download error icon color tint (#4959)
* Fix download error color tint

* Use progress indicator as download icon border

* Resolve feedback

* Use extension function to set tinted drawable
2021-04-25 11:36:13 -04:00
Ivan Iskandar 4e7b8c98f9 Make the download progress status smoother (#4958)
* Make the download progress status smoother

* Download status icon cleanup
2021-04-25 10:42:06 -04:00
Ivan Iskandar d0bf93ebb7 MainActivity: Show bottom nav when the tab page is changed (#4914)
* MainActivity: Show bottom nav when the tab page is changed

* Revert "MainActivity: Show bottom nav when the tab page is changed"

This reverts commit 27fd73db

* MainActivity: Show bottom nav when the app bar is fully expanded
2021-04-21 17:43:53 -04:00
Ivan Iskandar 60a929b92c Fix source SearchView stuck open until query submitted (#4897)
closes #4850
2021-04-18 11:32:22 -04:00
Ivan Iskandar ad57fde1c5 Themes cleanup (#4894) 2021-04-18 11:29:56 -04:00
Ivan Iskandar 1f729f1cb3 Add navigation bar scrim (#4845)
* Revert "Add navigation bar scrim (closes #4836)"

This reverts commit 2a69d1b0

* Add navigation bar scrim
2021-04-15 09:55:39 -04:00
Ivan Iskandar 84e023607c BrowseSourceController: Fix navigation bar insets not properly applied (#4810) 2021-04-11 10:49:23 -04:00
Ivan Iskandar f3660d88dd Draw edge-to-edge (#4802) 2021-04-10 09:38:55 -04:00