Skip to content

Commit

Permalink
hide invite friends if user was betting by himself and match has ended
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCzekanski committed Jun 18, 2018
1 parent c0e2533 commit 4546bd6
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@ class BetViewHolder(override val containerView: View, val callback: Callback) :
if (cell.bet.bets.size == 1 && userBet != null) {
viewSeparator.hide()
layoutBottom.hide()
buttonInvite.show()
buttonInvite.setOnClickListener {
callback(cell) // TODO: Change me

if (isAfterMatch) {
buttonInvite.hide()
} else {
buttonInvite.show()
buttonInvite.setOnClickListener {
callback(cell) // TODO: Change me
}
}
} else {
viewSeparator.show()
Expand Down

0 comments on commit 4546bd6

Please sign in to comment.