Skip to content

Commit 48cae7e

Browse files
committed
Also apply starting number to score reset
1 parent 87bc30e commit 48cae7e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

mobile/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ android {
1919
applicationId "es.hegocre.scorecounter"
2020
minSdk 24
2121
targetSdk 36
22-
versionCode 361500000
22+
versionCode 361500001
2323
versionName "1.5.0"
2424
resourceConfigurations += ['ca', 'es', 'en']
2525
}

mobile/src/main/java/es/hegocre/scorecounter/ScoreViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class ScoreViewModel(application: Application) : AndroidViewModel(application) {
8484

8585
fun reset(index: Int) {
8686
if (index < _scores.size) {
87-
_scores[index] = _scores[index].copy(score = 0)
87+
_scores[index] = _scores[index].copy(score = startingScore)
8888
viewModelScope.launch {
8989
saveScore()
9090
}

0 commit comments

Comments
 (0)