Adds comment to text export

hh
Laurent 6 years ago
parent 5815a36649
commit 1cd4dfc229
  1. 6
      app/src/main/java/net/pokeranalytics/android/model/realm/handhistory/HandHistory.kt

@ -240,6 +240,12 @@ open class HandHistory : RealmObject(), RowRepresentable, Identifiable, Filterab
string = string.plus(firstLineComponents.joinToString(" - ")) string = string.plus(firstLineComponents.joinToString(" - "))
string = string.addLineReturn(2) string = string.addLineReturn(2)
// Comment
this.comment?.let { comment ->
string = string.plus(comment)
string = string.addLineReturn(2)
}
// Players // Players
this.playerSetups.sortedBy { it.position }.forEach { this.playerSetups.sortedBy { it.position }.forEach {
string = string.plus(localizedPlayerSetup(it, positions, context)) string = string.plus(localizedPlayerSetup(it, positions, context))

Loading…
Cancel
Save