Skip to content

Commit

Permalink
Add check
Browse files Browse the repository at this point in the history
  • Loading branch information
maksim789456 committed Jul 15, 2020
1 parent 84e2f48 commit 1816e62
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,13 @@ class ReleaseEpisodeDelegate(
itemListener.onClickEpisode(currentItem)
}
containerView.setOnLongClickListener {
itemListener.onLongClickEpisode(currentItem)
true
if (currentItem.isViewed)
{
itemListener.onLongClickEpisode(currentItem)
true
}
else
false
}
}

Expand Down

0 comments on commit 1816e62

Please sign in to comment.