-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix IllegalStateException for @OrmLiteDao in view #2069
Fix IllegalStateException for @OrmLiteDao in view #2069
Conversation
| case OnAttachOnDetach: | ||
| registerBlock = holder.getOnAttachAfterSuperBlock(); | ||
| unregisterBlock = holder.getOnDetachBeforeSuperBlock(); | ||
|
|
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.
This code is now rather ugly, but this is the price for removing the invalid abstraction HasLifecycleMethods. Do you have a better idea? @dodgex
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.
Currently i cant think of a better way to solve this. :/
bc8aba4 to
86cc04f
Compare
dodgex
left a comment
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.
Beside the one unnecessary new line i think this is okay. If you do not want to update the pr for that space i'm okay with that. :D
| return getInitBodyInjectionBlock(); | ||
| } | ||
|
|
||
|
|
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.
unnecessary newline? :)
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.
Fixed.
| case OnAttachOnDetach: | ||
| registerBlock = holder.getOnAttachAfterSuperBlock(); | ||
| unregisterBlock = holder.getOnDetachBeforeSuperBlock(); | ||
|
|
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.
Currently i cant think of a better way to solve this. :/
androidannotations#2048 This commit contains a bigger refactor as well: the previous implementation contained HasLifecycleMethods interface, which was implemented by most all the components, even if they do not have the specific methods. This is now changed.
86cc04f to
bed7344
Compare
|
Thanks |
#2048
This commit contains a bigger refactor as well: the previous
implementation contained HasLifecycleMethods interface, which was
implemented by most all the components, even if they do not have
the specific methods. This is now changed.