Use correct block for method injection of ViewById and ViewsById#1967
Use correct block for method injection of ViewById and ViewsById#1967dodgex merged 2 commits intoandroidannotations:developfrom dodgex:1966_use_correct_injection_block
Conversation
|
@dodgex i do not understand this. The current code is using the injection block, and these are injection annotations. |
|
There is an issue with the order of injections. If you use method injection for a list of views there is a chance that you get an empty or only partially filled list in the injecting method. With this change the method injection is ensured to be called after all views have been resolved. you can see an example of generated code in the issue #1966 |
|
@dodgex but with your change, the view injections end up in the same block as |
|
Oh damn... yeah. I forgot about |
|
PR Updated. I added a new block for viewholder lookups between "before injection" and "injection" blocks. |
fix #1966