|
|
|
|
@ -29,6 +29,7 @@ import net.pokeranalytics.android.ui.view.rowrepresentable.CustomizableRowRepres |
|
|
|
|
import net.pokeranalytics.android.util.extensions.findById |
|
|
|
|
import net.pokeranalytics.android.util.extensions.formatted |
|
|
|
|
import timber.log.Timber |
|
|
|
|
import java.text.DecimalFormat |
|
|
|
|
import kotlin.coroutines.CoroutineContext |
|
|
|
|
import kotlin.reflect.KClass |
|
|
|
|
|
|
|
|
|
@ -521,7 +522,10 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
val amount = try { |
|
|
|
|
this.currentAmount?.toDouble() |
|
|
|
|
this.currentAmount?.let { |
|
|
|
|
DecimalFormat.getNumberInstance().parse(it).toDouble() |
|
|
|
|
} |
|
|
|
|
// this.currentAmount?.toDouble() |
|
|
|
|
} catch (e: NumberFormatException) { |
|
|
|
|
Timber.w("Parsing exception: ${e.message}") |
|
|
|
|
return |
|
|
|
|
|