From 1cd4dfc22951c8c474970ab9a775a8649832d191 Mon Sep 17 00:00:00 2001 From: Laurent Date: Wed, 19 Feb 2020 10:24:34 +0100 Subject: [PATCH] Adds comment to text export --- .../android/model/realm/handhistory/HandHistory.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/net/pokeranalytics/android/model/realm/handhistory/HandHistory.kt b/app/src/main/java/net/pokeranalytics/android/model/realm/handhistory/HandHistory.kt index d3f2f132..18cd5bd7 100644 --- a/app/src/main/java/net/pokeranalytics/android/model/realm/handhistory/HandHistory.kt +++ b/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.addLineReturn(2) + // Comment + this.comment?.let { comment -> + string = string.plus(comment) + string = string.addLineReturn(2) + } + // Players this.playerSetups.sortedBy { it.position }.forEach { string = string.plus(localizedPlayerSetup(it, positions, context))