-
-
Notifications
You must be signed in to change notification settings - Fork 30
Customize shared text using template setting #254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customize shared text using template setting #254
Conversation
48349d0 to
d32c683
Compare
|
Hello, thank you for this! I'm sorry for not answering your issue before you started working on this. So let's see. I got a bit of a hard time making the template to work, due to a few things:
Otherwise it works greatly, I would have a few other things to say:
|
app/src/main/java/com/readrops/app/more/preferences/PreferencesScreen.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/readrops/app/more/preferences/PreferencesScreen.kt
Outdated
Show resolved
Hide resolved
I believe so because it seems to be doing a lot of introspection and since it's static, it seems to happen only the first time. I don't know what to do about it. Maybe a Koin injection? I'm not sure whether Koin modules are lazy or not. Edit: So I just tested and, yes, they're lazy. Except for importing
Yes, I will do. Please remind me to do so if I forget. I will try to fix your other comments tomorrow. |
d32c683 to
00bc58e
Compare
|
I think I fixed everything except for the latency due to the
I added a button to fill the input with a default template. I updated the images in the description of the PR according to that. |
|
I fixed the R8 compilation error with the last commit.
This does not seem to reproduce with the beta and release builds so I guess it's fine. The compiler must be optimizing the code. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #254 +/- ##
=============================================
- Coverage 19.94% 19.77% -0.17%
Complexity 448 448
=============================================
Files 188 190 +2
Lines 9838 9998 +160
Branches 1545 1563 +18
=============================================
+ Hits 1962 1977 +15
- Misses 7760 7905 +145
Partials 116 116 ☔ View full report in Codecov by Sentry. |
|
Uh. You want me to add integration tests? Can do but I really hate writing android tests. |
app/src/main/java/com/readrops/app/more/preferences/PreferencesScreenModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/readrops/app/more/preferences/PreferencesScreenModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/readrops/app/timelime/TimelineScreenModel.kt
Outdated
Show resolved
Hide resolved
|
|
||
|
|
||
| class PreferencesScreen : AndroidScreen() { | ||
| class PreferencesScreen : AndroidScreen(), KoinComponent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need KoinComponent anymore, don't we?
99487a3 to
eebb46f
Compare
eebb46f to
026eb2b
Compare
|
Alright, the last commit applies your suggestions. |
app/src/main/java/com/readrops/app/more/preferences/PreferencesScreenModel.kt
Show resolved
Hide resolved
97a2ed6 to
026eb2b
Compare
|
Thank you for this work! I hope to be able to release a new version soon with this, most of the work has been done. |
|
Awesome! Thank you! |
Implement #251