Skip to content

Commit

Permalink
Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
acristescu committed Sep 7, 2023
1 parent 849fb21 commit 34c8dd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class StatsViewModel(
val currentStreak = if(last10Games.isEmpty()) "-" else {
val lastGameWon = last10Games.last().won
val count = last10Games.takeLastWhile { it.won == lastGameWon }.size
val suffix = if (lastGameWon) "win(s)" else "loss(es)"
val suffix = if (lastGameWon) "win${if(count != 1) "s" else ""}" else "loss${if(count != 1) "es" else ""}"
"$count $suffix"
}
val recentWins = last10Games.count { it.won }
Expand Down
19 changes: 3 additions & 16 deletions app/src/main/java/io/zenandroid/onlinego/utils/WhatsNewUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,11 @@ private val annotatedCurrentText = AnnotatedString.Builder().run {
pop()

pushStyle(SpanStyle(fontWeight = FontWeight.Normal))
append("· Fixed a bug where AI will keep playing even if was not their turn.")
append("· New Stats screen!")
append("\n")
append("· Added Github releases.")
pop()

pushStyle(SpanStyle(fontSize = 18.sp))
append("\n\nPrevious version\n\n")
pop()
pushStyle(SpanStyle(fontWeight = FontWeight.Normal))
append("· Fixed a bug with KO rule in analysis mode.")
append("\n")
append("· Fixed value of komi with handicap in face-to-face mode.")
append("\n")
append("· Added ability to 'pass' in face-to-face mode.")
append("\n")
append("· Fixed a crash related to quickly mashing the bottom navigation bar.")
append("· New Settings screen!")
append("\n")
append("· Fixed a few minor issues in the new face-to-face screen.")
append("· Lots of bugfixes")
pop()

pushStyle(SpanStyle(fontSize = 18.sp))
Expand Down

0 comments on commit 34c8dd1

Please sign in to comment.