Skip to content

Commit

Permalink
Fix warnings in FilterTouchHelperCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
XinyueZ authored and florina-muntenescu committed Sep 7, 2018
1 parent fe37871 commit 4b025b1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ class StoryViewHolder(
visibility = if (pocketIsInstalled) View.VISIBLE else View.GONE
if (pocketIsInstalled) {
imageAlpha = 178 // grumble... no xml setter, grumble...
setOnClickListener { story?.let { onPocketClicked(it, adapterPosition) } }
setOnClickListener { story?.let { story -> onPocketClicked(story, adapterPosition) } }
}
}
comments.setOnClickListener {
story?.let {
story?.let { story ->
val data =
TransitionData(
it,
story,
adapterPosition,
title,
getSharedElementsForTransition(),
Expand All @@ -72,10 +72,10 @@ class StoryViewHolder(
}
}
itemView.setOnClickListener {
story?.let {
story?.let { story ->
val data =
TransitionData(
it,
story,
adapterPosition,
title,
getSharedElementsForTransition(),
Expand Down

0 comments on commit 4b025b1

Please sign in to comment.