You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 30, 2022. It is now read-only.
I think that the problem is that the array is not covered by the pattern matcher. IMHO this question is not related with the issue or even macroid, it seems related with the Scala language. Please, ask the same question in stackoverflow. I'll delete the comment in some days to keep the issue clearer.
The problem is that your match is not exhaustive. You should cover all the cases for List because of the Intent class has one method for every type of the list. For me, the code could be a little bit tricky but you can create classes for every type for containing the list. Something like that:
I don't have tried the code, it´s only a proof of concept. Maybe it´s not the better solution, but you can investigate around that. If you want to contribute, you can create a PR to macroid-extras in the UIActionsExtras class
Activity
rickrickrickyyy commentedon Jul 18, 2017
Hi
fedefernandez commentedon Jul 24, 2017
I think that the problem is that the array is not covered by the pattern matcher. IMHO this question is not related with the issue or even macroid, it seems related with the Scala language. Please, ask the same question in stackoverflow. I'll delete the comment in some days to keep the issue clearer.
rickrickrickyyy commentedon Jul 25, 2017
If you change the above method startActivity to public and rename it to "goto"
you can use this code to navigate into an activity like this
<~ On.Click(goto(classOf[SomeActivity],"EXTRA"->id))javipacheco commentedon Jul 25, 2017
The problem is that your match is not exhaustive. You should cover all the cases for
Listbecause of the Intent class has one method for every type of the list. For me, the code could be a little bit tricky but you can create classes for every type for containing the list. Something like that:Then you can use it at the beginning of your match:
I don't have tried the code, it´s only a proof of concept. Maybe it´s not the better solution, but you can investigate around that. If you want to contribute, you can create a PR to
macroid-extrasin the UIActionsExtras classThanks!
+ extras: DSL for navigating between activities xebia-functional#62
+ extras: DSL for navigating between activities xebia-functional#62
rickrickrickyyy commentedon Jul 27, 2017
I have just created a PR. Could you review it and give me some feedback?
Thanks
+ extras: DSL for navigating between activities xebia-functional#62
+ extras: DSL for navigating between activities xebia-functional#62