-
-
Save DivS-15/58106d2cedc3773d04ae5fbe5f5c3190 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
class VideoLoadStateAdapter(private val retry: () -> Unit) : LoadStateAdapter<VideoLoadStateViewHolder>() { | |
override fun onBindViewHolder(holder: VideoLoadStateViewHolder, loadState: LoadState) { | |
holder.bind(loadState) | |
} | |
override fun onCreateViewHolder( | |
parent: ViewGroup, | |
loadState: LoadState | |
): VideoLoadStateViewHolder { | |
return VideoLoadStateViewHolder.create(parent, retry) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment