|
|
|
|
@ -72,6 +72,10 @@ class SessionRowView : FrameLayout { |
|
|
|
|
title += (if (title.isNotEmpty()) " " else "") + session.getGameTitle() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (title.isEmpty()) { |
|
|
|
|
title = context.getString(R.string.tournament).capitalize() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else if (session.type == Session.TYPE_GAME) { |
|
|
|
|
if (session.cgSmallBlind != null && session.cgBigBlind != null) { |
|
|
|
|
title += session.getBlinds() |
|
|
|
|
@ -79,7 +83,10 @@ class SessionRowView : FrameLayout { |
|
|
|
|
session.game?.let { |
|
|
|
|
title += (if (title.isNotEmpty()) " " else "") + session.getGameTitle() |
|
|
|
|
} |
|
|
|
|
title += if (title.isEmpty()) "--" else "" |
|
|
|
|
|
|
|
|
|
if (title.isEmpty()) { |
|
|
|
|
title = context.getString(R.string.cash_game).capitalize() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
rowHistorySession.sessionTitle.text = title |
|
|
|
|
@ -115,7 +122,7 @@ class SessionRowView : FrameLayout { |
|
|
|
|
rowHistorySession.playingIcon.isVisible = false |
|
|
|
|
rowHistorySession.playingTitle.isVisible = false |
|
|
|
|
|
|
|
|
|
val result = session.result?.netResult ?: 0.0 |
|
|
|
|
val result = session.result?.net ?: 0.0 |
|
|
|
|
rowHistorySession.gameResult.amount = result |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|