Skip to content

Commit

Permalink
Update NewsCards.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
AkosPaha01 committed Dec 26, 2021
1 parent c14c8b2 commit 178aa7d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ class NewsCards(context: Context, attrs: AttributeSet? = null) : LinearLayout(co
init {
inflate(context, R.layout.news_card, this)

newsFeedAdapter = NewsFeedAdapter(cards, clickNewsListener)
newsFeedAdapter = NewsFeedAdapter(cards) {
clickNewsListener(it)
}
recyclerView = findViewById(R.id.recyclerViewNews)

val snapHelper = LinearSnapHelper()
Expand Down

0 comments on commit 178aa7d

Please sign in to comment.