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

Refactor the builder for BindableAdapter #409

Merged
merged 2 commits into from
Nov 20, 2019

Conversation

BenHenning
Copy link
Sponsor Member

This splits the adapter into two: one for single-type recycler views, and another for multi-type recycler views. The latter has also been updated to require an enum for typing rather than an integer to ensure type safety. Per existing usages, we may want to switch this to a KClass in the future since it seems like we typically convert from class type to enum, anyway.

This splits the adapter into two: one for single-type recycler views,
and another for multi-type recycler views. The latter has also been
updated to require an enum for typing rather than an integer to ensure
type safety. Per existing usages, we may want to switch this to a KClass
in the future since it seems like we typically convert from class type
to enum, anyway.
Copy link
Contributor

@jamesxu0 jamesxu0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Great refactor!

@jamesxu0 jamesxu0 assigned BenHenning and unassigned jamesxu0 Nov 19, 2019
Conflicts:
	app/src/main/java/org/oppia/app/topic/conceptcard/ConceptCardFragmentPresenter.kt
@BenHenning
Copy link
Sponsor Member Author

Thanks!

@BenHenning BenHenning merged commit 2f497d6 into develop Nov 20, 2019
@BenHenning BenHenning deleted the refactor-bindable-recycler-view branch November 20, 2019 01:11
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.

None yet

2 participants