-
Notifications
You must be signed in to change notification settings - Fork 37
Multiple Event Listener Tweaks #58
Multiple Event Listener Tweaks #58
Conversation
Hi and thanks for your contribution! I’ve left some comments in the main commits, so here I’d just like to do a short summary.
|
…esses all comments over the previous commits.
Hi @stanch, I didn't see your last comment over the PR :( , sorry about it. My last commit message, it doesn't fit with the desired structure. In the last commit, I've removed the BoolEvent handler type because of it adds some confusion and it really doesn't provide anything new. About your 3rd point, sounds good. I'm going to take a look and I'll let you know my final thoughts about it ;) I have to push another commit and I promise it will be with the desired format. Thanks! |
+ core: upgrades the android-sdk plugin version. = docs: minor fixes over the documentation.
All comments have been addressed. Could you take another look when you have a chance? Thanks! As I said in the comment above, your proposal to improve the DSL to manage the events it seems very interesting and looks so good but at this time, I think we could go ahead with this PR such it has been implemented and in the future we could improve it ;) . What do you think? Also, |
Hey @juanpedromoreno, sorry it’s taking so long — I’ll only be able to have a thorough look at your changes over the weekend. |
|
||
type FuncHandler = String | ||
|
||
sealed trait HandlerType |
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.
Can HandlerType
, HUnit
, HUnitFunc
reuse macroid.EventTweakMacros.{ ListenerType, UnitListener, FuncListener }
?
Hi, here goes the second bunch of comments :) At the moment I’m mostly concerned about two things:
By the way, just a small note — before merging I’ll kindly ask you to squash everything into a single commit with the standardized message format and rebase on top of the current master. |
+ core: rewires the current On and FuncOn to the MultiOn base implementation. Refactors all the implementations into a single one. = docs: minor fixes over the documentation.
Hi @stanch, I've unified all the duplicated code and functionality into a single event implementation, adding the MultiOn feature. Please, review it again when you have a chance. Then, when it's ready to merge I will squash all these changes into a single commit with the standardised message format and rebase on top of the current master once more ;) |
Hi, sorry for the delay — I’ve just returned from a vacation yesterday. I’ll try to review your changes ASAP, unfortunately before leaving I upgraded IDEA and now I can’t import the project properly :( |
This PR brings the ability to override the different handlers in the Android Listeners with several overrides (for instance:
OnSeekBarChangeListener
).If this contribution looks good to you, in a potential next PR, we would propose replace the current
On
implementation for the equivalentUnitOn
proposed here, andFuncOn
forUnitFuncOn
, even both could be namedOn
andFuncOn
. That means theUnitOn
is equivalent to the currentOn
, and in the other hand,UnitFuncOn
is equivalent toFuncOn
.From 47Deg, we wish this contribution will be useful.
Please, @stanch , Could you review? Thanks!