Created
April 8, 2019 13:14
-
-
Save hadilq/ed00e233c8ce72c8e6ff4ece4ffaeb95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@FooScope | |
class BridgeAdapter @Inject constructor( | |
private val fooProvider: Provider<FooViewHolder>, | |
// ... other ViewHolder providers | |
private val bridge: FooBridge | |
) : PagedListAdapter<Entity, RecyclerView.ViewHolder>() { | |
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder { | |
bridge.parent = parent | |
return fooProvider.get() | |
} | |
// .... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment