release/2.0 #21

Merged
fabian merged 137 commits from release/2.0 into master 2023-01-28 23:29:27 +01:00
Showing only changes of commit 637a34efd7 - Show all commits

View File

@@ -39,7 +39,7 @@ class HistoryListViewModel : ViewModel() {
private fun getScoreA() { private fun getScoreA() {
var tempScore = 0 var tempScore = 0
scores.forEach { scores.forEach {
tempScore += it.scoreA!! it.scoreA?.let { it -> tempScore += it }
} }
_totalScoreA.value = tempScore _totalScoreA.value = tempScore
} }
@@ -47,7 +47,7 @@ class HistoryListViewModel : ViewModel() {
private fun getScoreB() { private fun getScoreB() {
var tempScore = 0 var tempScore = 0
scores.forEach { scores.forEach {
tempScore += it.scoreB!! it.scoreB?.let {it -> tempScore += it}
} }
_totalScoreB.value = tempScore _totalScoreB.value = tempScore
} }