Improves text export

hh
Laurent 6 years ago
parent 5767d98802
commit 30a0101c44
  1. 15
      app/src/main/java/net/pokeranalytics/android/model/realm/handhistory/HandHistory.kt

@ -338,14 +338,19 @@ open class HandHistory : RealmObject(), Deletable, RowRepresentable, Filterable,
val potSize = this.potSizeForStreet(street)
if (potSize > 0) {
streetItems.add(context.getString(R.string.pot_size))
streetItems.add(potSize.formatted)
// streetItems.add(context.getString(R.string.pot_size))
streetItems.add("(" + potSize.formatted + ")")
}
string = string.plus(streetItems.joinToString(" "))
if (this.cards.isNotEmpty()) {
streetItems.add(this.cardsForStreet(street).formatted(context) ?: "")
val streetCards = this.cardsForStreet(street)
if (streetCards.isNotEmpty()) {
string = string.addLineReturn()
string = string.plus(streetCards.formatted(context) ?: "")
}
string = string.plus(streetItems.joinToString(" "))
string = string.addLineReturn()
string = string.plus("-----------")
string = string.addLineReturn()
streetActions.forEach { action ->

Loading…
Cancel
Save