Skip to content
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

bindViewHolder method is causing a problem with greendao #484

Closed
nordanfors opened this issue Nov 3, 2017 · 2 comments
Closed

bindViewHolder method is causing a problem with greendao #484

nordanfors opened this issue Nov 3, 2017 · 2 comments

Comments

@nordanfors
Copy link

I am using GreenDao for persistence in my project and I am getting some error when trying to implement Flexible adapter:

Error:Execution failed for task ':app:greendao'.

Found 1 problem(s) parsing
Pb(572) List is a raw type. References to generic type List should be parameterized (16777788 at line 248).

Line 248 in my code is this method:
public void bindViewHolder(FlexibleAdapter adapter, MyViewHolder holder, int position,
List payloads) {...}

It seems greendao is not happy with the payload List being typeless. I have not been able to figure out a solution or workaround so any help would be very welcome.

@davideas
Copy link
Owner

davideas commented Nov 7, 2017

@nordanfors, I can only put this: List<Object> in the Snapshot version so you can try and tell me.
I will try to publish it this evening CET timezone.

@davideas
Copy link
Owner

davideas commented Nov 8, 2017

@nordanfors, can you try to verify with the Snapshot version?

@davideas davideas added this to the 5.0.0-rc4 milestone Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants