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
  2. 2
      app/src/main/res/values-es/strings.xml

@ -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 ->

@ -1,6 +1,6 @@
<resources>
<string name="app_name">Poker Analytics</string>
<string name="session_missing_start_date">Establece una fecha de inicio para la sesión</string>
<string name="initial_value">Valor inicial</string>
<string name="less_then_2_values_for_display">No se puede mostrar porque hay menos de dos valores para mostrar</string>

Loading…
Cancel
Save