Commit Graph

73 Commits

Author SHA1 Message Date
[pʲɵs] c22e2e8159 Do not suppress a type system error (#2524)
This code was sort of fine when it used raw Java types, but the Kotlin
equivalent technically calls a method that takes a Nothing-typed
argument with a value that is not of type Nothing. Whether that works
depends on how lenient kotlinc is about inserting casts in bytecode.

The solution is to give the unknown type represented by a star an
explicit name by capturing it in a type variable, then cast to that type
instead of Nothing. This is guaranteed to be an unchecked, but valid,
cast.
2020-01-20 18:34:59 -05:00
MCAxiaz bed978a26a force menu invalidation when expanding actionView from user interaction to properly layout menu items (#2503) 2020-01-16 21:44:22 -05:00
MCAxiaz 6b5742c1ff Fix catalogue search focus automatically being removed (#2396)
Fix catalogue search focus automatically being removed
2020-01-12 15:02:21 -05:00
arkon 797553ce16 Convert webview into an activity (#2470)
Based on https://github.com/Jays2Kings/tachiyomiJ2K/commit/65804ebb3aca0a79377167334ff842c0789440f3
2020-01-10 22:22:12 -05:00
arkon 83d5e458ca Update to SDK 29 (Android 10) (#2468) 2020-01-09 20:31:27 -05:00
arkon 0d5099f230 Drop support for Android 4.x (#2440)
* Bump minSdkVersion

* Remove Android 4.x specific logic

* Consolidate res assets

* Add note about minimum Android version to README

* Restore incorrectly removed method, remove unneeded Lollipop TargetApi annotations
2020-01-07 18:46:31 -05:00
arkon b3f1714ba9 Convert remaining Java files (#2435) 2020-01-05 19:39:25 -05:00
arkon 600fbb2ef8 Update files to use unix line endings
cmd: `find . -type f -print0 | xargs -0 dos2unix`
2020-01-05 14:43:07 -05:00
arkon 78689e7443 Migrate to AndroidX (#2424)
* Migrate to AndroidX (automatic conversion by Android Studio)

* AndroidX dependency code updates

* Fix source preference reparenting

* fixes the androidx prefererences icon spacing issue

(cherry picked from commit b76a15d960ec2cdf771be16377db0348b66b3179)

* Fix source preference screen heading size/list padding

Co-authored-by: Carlos <cargo8005@gmail.com>
2020-01-05 11:29:27 -05:00
inorichi 8874fe973c Bugfixes 2018-04-30 18:31:31 +02:00
inorichi 5c31271e91 Workaround a crash related to saving instance state and child controllers 2018-04-25 16:26:46 +02:00
inorichi ba4807f62c Add logging to controller lifecycle to help reproducing bugs 2018-03-04 21:04:41 +01:00
inorichi 5a3e30b30a Update conductor to latest snapshot (with a minor fix) 2018-02-27 19:06:34 +01:00
inorichi a75457ad88 Add a new screen to help migrating manga from sources 2018-01-12 22:02:05 +01:00
inorichi 6d3cc16ab1 Include minor changes from extensions PR 2018-01-09 12:27:45 +01:00
inorichi 8bcb14c65d Add view caching to view holders 2017-12-03 17:00:32 +01:00
inorichi d690d6e0e3 Use synthetic view's new caching method 2017-12-03 01:03:15 +01:00
inorichi 827792c4f0 Restore previous query in global search. Closes #1040 2017-10-28 18:26:31 +02:00
Bram van de Kerkhof 54c8b3ef29 Global Search (#849)
* Global Search

* Cards are now independent of design by use of recycler.

* Added local

* Some attribute fixes + moved onclick to controller.

* Lots of improvements to code

* Reversed some stuff. Thanks API 16

* Code fixes

* Performance improvements

* Moved adapter creation to constructor

* Small changes

* Removed sources settings from settings menu. Added OnChangeListener in catalogue. Made setting icon visible if room.

* bug fix

* Code review part uno

* Code review part uno-2

* Single recycler approach

* Add last source used

* Fix scroll state and some layout issues

* Fix wrong item binding

* Use data class for items

* Calculate item position and count while binding

* Fix background color with slices

* Reuse slices. Fix card background. Flatten constraint layout

* Fix global_search scroll issue

* Store last state with global search

* Minor changes

* Remove catalogue toolbar spinner. Persist catalogue across process restarts

* Save view state of recycler views. Set toolbar title with current query
2017-09-23 13:11:39 +02:00
inorichi 2f6d163a7a Simplify presenter delegate 2017-08-29 10:39:22 +02:00
inorichi ecfe72bcad Let GC take care of the presenter. Also fix #947 2017-08-29 09:55:42 +02:00
inorichi 17fe501a6d Ask permissions once. Fixes #892 2017-08-07 11:04:27 +02:00
inorichi d3cbfbdb59 Add workaround for disappearing menu items 2017-07-26 11:29:03 +02:00
inorichi c7686323b7 Remove activity mixin class 2017-05-24 14:00:26 +02:00
len 72ea256906 Downloads with conductor. Remove flexible adapter 4 dependency and unused classes. 2017-05-23 20:03:16 +02:00
inorichi ff190e02d4 Preferences with conductor (#792)
* Settings with conductor WIP

* Add downloads preference controller. Implement source/track login

* Improve settings controllers

* Backup settings controller

* Delete preferences xml

* Remove keys from xml

* PreferenceKeys is now an object

* Remove now unused dependency
2017-05-14 00:45:14 +02:00
Bram van de Kerkhof 2118434823 Initial AMOLED theme + some CardView fixes (#787)
* Initial AMOLED theme + some CardView fixes

* small fix
2017-05-07 12:36:25 +02:00
inorichi 2eeac0bf8b UI with Conductor (#784) 2017-05-06 15:49:39 +02:00
len 5c67161dce Minor changes for Kotlin 1.1 2017-03-03 18:18:06 +01:00
len 7b9f5d0e9f Update category adapter 2017-01-13 19:35:20 +01:00
len e4d4dbbeb6 Change package name to flexible adapter v4 2017-01-12 16:24:40 +01:00
len 96a39f5c54 Remove custom presenter class 2017-01-08 20:56:42 +01:00
len 3a1699f0b3 Fix #373 and a few crashes 2016-12-31 16:19:32 +01:00
len 006d17aac7 Fix locale not applied outside activities 2016-12-26 16:56:19 +01:00
len d180631877 Add ripple effect to filter nav view 2016-12-18 20:29:46 +01:00
len 1977e21363 Fix method conflicts 2016-12-18 16:59:06 +01:00
len e1a3ee1b81 Bugfixes 2016-12-18 16:35:39 +01:00
len 816cc17ed3 Fix #577. Fix language not applied in reader activity. 2016-12-14 22:33:24 +01:00
len 32511149d1 Format fixes. Move lang setting to the first entry (looks better IMO) 2016-12-13 21:07:48 +01:00
Ken Swenson cc9fd53abb Implement language switcher (#563)
* Implement language switching using BaseActivity

* Add requested changes

* Cleanup App.kt Imports and add pref_language_key

* Acutally use @string for key

* Use string resource for language preference title
2016-12-13 20:47:46 +01:00
len dfb2487640 Library views recycling 2016-08-22 12:54:16 +02:00
len a82e1d0e45 Remove unneeded annotations and some cleanup 2016-06-15 17:47:44 +02:00
len 237af4b07d Fix dependency injection and use custom models extending DB ones 2016-06-14 15:17:37 +02:00
len 0fe350af9a Minor classes restructuration and optimize imports 2016-05-27 13:21:21 +02:00
len 49628e9cf5 Fix recent crashes 2016-04-30 01:44:53 +02:00
len e881488bcc Refactor and convert to Kotlin base classes. Fix FAB behavior 2016-04-28 21:54:54 +02:00
Mohamed Ezzat ff6eefe1c4 pmd:ImmutableField - Immutable Field (#282) 2016-04-28 18:46:05 +02:00
NoodleMage 55e9d2880c Rewrote UpdateDownloader to Kotlin
Added auto update check (every 12 hour)
Warning message optional fix #256
Lots of bug fixes!
2016-04-26 20:57:05 +02:00
len 9f0da3f1d6 Upgrade to nucleus 3 2016-04-22 14:28:06 +02:00
len a9bfeb058b Revert "Temporarily include nucleus in the project"
This reverts commit 447dfd1e3c.
2016-04-19 14:11:03 +02:00