-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
[BUG] - setOnSetImageUriCompleteListener can't use lambda form anymore for the interface OnSetImageUriCompleteListener #102
Comments
Thanks for pointing this, for sure is an improvement we can do it. We didn't when we convert from Java because this would change the method notation, right know the difference is from using lambda to usage of creating the Listener class. If we decide to use the Kotlin we don't need to define an interface anymore, I mean the code Was not that we didn't look enough, the library was not update since 2018 there was a lot of bugs and fixes to put in place we cannot do all at once. So we decide to not break. Please feel free to join us and drop a PR. This would be an amazing momento to create the |
@Canato I didn't mean I wrote in Java. this is in Kotlin. |
Sorry, maybe I was confusing on my worlds. I meant we need to keep the library working for Kotlin and Java after the changes. So we need to test, something simple. Same as the other ticket, for sure is something we should do and something I want to do, but this is low on my priority now. But feel free to add it ^^ |
@Canato As I'm not so familiar with how the library works, I prefer only to give advice and feedback as a user of it. |
Don't worry, I don't wanna be the only merging in the lib, I just handover the repo, but I hope this can be a community work. If you make the changes and test the samples in the sample app everything should be safe. If something is missing and I know I can tell on the PR, but myself just have 4 months touching the lib. So much to learn too |
OK here: |
Seems now it's possible again to use the short form again. Weird that the IDE doesn't suggest it though. |
2.3.0
Describe the bug
When it was in Java, I could use :
Now I have to use :
To Reproduce
Expected behavior
Should still allow to do it.
Screenshots
No need
Smartphone (please complete the following information):
None.
Additional context
I think whoever converted to Kotlin didn't look enough at the resulting code...
To fix this, I think it's possible to use "fun interface" instead of just "interface". This should be added for each interface in the project that has a single function.
The text was updated successfully, but these errors were encountered: