|
|
|
@ -503,11 +503,15 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
fun amountValidated() { |
|
|
|
fun amountValidated() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.currentAmount?.isEmpty() == true) { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
val amount = try { |
|
|
|
val amount = try { |
|
|
|
this.currentAmount?.toDouble() |
|
|
|
this.currentAmount?.toDouble() |
|
|
|
} catch (e: NumberFormatException) { |
|
|
|
} catch (e: NumberFormatException) { |
|
|
|
Timber.w("Parsing exception: ${e.message}") |
|
|
|
Timber.w("Parsing exception: ${e.message}") |
|
|
|
null |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
when (val row = this.rowRepresentables[this.currentSelection.index]) { |
|
|
|
when (val row = this.rowRepresentables[this.currentSelection.index]) { |
|
|
|
|