|
|
|
|
@ -284,11 +284,11 @@ open class Session : RealmObject(), SessionInterface, Savable, |
|
|
|
|
override fun stringForRow(row: RowRepresentable): String { |
|
|
|
|
return when (row) { |
|
|
|
|
SessionRow.BUY_IN -> buyin.toCurrency() |
|
|
|
|
SessionRow.BLINDS -> if (cgSmallBlind != null && cgBigBlind != null) "$cgSmallBlind / $cgBigBlind" else "--" |
|
|
|
|
SessionRow.BLINDS -> getBlinds() |
|
|
|
|
SessionRow.GAME -> getGameTitle() |
|
|
|
|
SessionRow.LOCATION -> location?.name ?: "--" |
|
|
|
|
SessionRow.BANKROLL -> bankroll?.name ?: "--" |
|
|
|
|
SessionRow.TABLE_SIZE -> tableSize?.toString() ?: "--" |
|
|
|
|
SessionRow.TABLE_SIZE -> tableSize?.toString() ?: "--" // if (tableSize != null) TableSize(tableSize ?: 0).localizedTitle(context) else "--" |
|
|
|
|
SessionRow.START_DATE -> if (timeFrame != null) timeFrame?.startDate?.shortDateTime() ?: "--" else "--" |
|
|
|
|
SessionRow.END_DATE -> if (timeFrame != null) timeFrame?.endDate?.shortDateTime() ?: "--" else "--" |
|
|
|
|
SessionRow.COMMENT -> if (comment.isNotEmpty()) comment else "--" |
|
|
|
|
|