|
|
|
@ -27,6 +27,7 @@ import net.pokeranalytics.android.ui.view.rowrepresentable.SeparatorRowRepresent |
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.SessionRow |
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.SessionRow |
|
|
|
import net.pokeranalytics.android.util.* |
|
|
|
import net.pokeranalytics.android.util.* |
|
|
|
import java.util.* |
|
|
|
import java.util.* |
|
|
|
|
|
|
|
import java.util.Currency |
|
|
|
import kotlin.collections.ArrayList |
|
|
|
import kotlin.collections.ArrayList |
|
|
|
|
|
|
|
|
|
|
|
open class Session : RealmObject(), SessionInterface, Savable, |
|
|
|
open class Session : RealmObject(), SessionInterface, Savable, |
|
|
|
@ -215,7 +216,9 @@ open class Session : RealmObject(), SessionInterface, Savable, |
|
|
|
* Return the formatted blinds |
|
|
|
* Return the formatted blinds |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
fun getBlinds(): String { |
|
|
|
fun getBlinds(): String { |
|
|
|
return if (cgSmallBlind == null) NULL_TEXT else "${cgSmallBlind?.toCurrency()}/${cgBigBlind?.round()}" |
|
|
|
val currencyCode = bankroll?.currency?.code ?: Currency.getInstance(Locale.getDefault()).currencyCode |
|
|
|
|
|
|
|
val currencySymbol = Currency.getInstance(currencyCode).symbol |
|
|
|
|
|
|
|
return if (cgSmallBlind == null) NULL_TEXT else "$currencySymbol ${cgSmallBlind?.formatted()}/${cgBigBlind?.round()}" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|