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

Add GroupieAdapter to use GroupieViewHolder by default #370

Merged
merged 1 commit into from
Jan 13, 2021

Conversation

ibado
Copy link
Contributor

@ibado ibado commented Nov 23, 2020

Implement the following ToDo: GroupAdapter<GroupieViewHolder>() //TODO get rid of this parameter
Basically GroupieAdapter extends from GroupAdapter using GroupieViewHolder. This way it's backward compatible and allow us to get rid of the generic parameter in kotlin. @lisawray what do you think?

@Zhuinden
Copy link
Collaborator

You know, the idea is sound, in this case GrouoieViewHolder is no longer just a typealias.

I'm sure we need to add some docs on GroupieAdapter, but this kinda begs the question why we had a generic parameter in the first place (as a user had to extend from GroupieViewHolder to use a GroupAdapter anyway).

I'll try to check through if this has any implications, the idea is sound. Thanks for the PR.

@ibado
Copy link
Contributor Author

ibado commented Nov 24, 2020

@Zhuinden totally agree with you, I mean my first try was just removing the generic parameter but then I thought wouldn't be cool to break library users code. If you have a better idea in mind please LMK :)

@Zhuinden Zhuinden merged commit 5cc74af into lisawray:master Jan 13, 2021
@Zhuinden
Copy link
Collaborator

I think I should have merged this right there and then.

Nonetheless, thanks! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants