diff --git a/app/src/main/java/ch/sdp/vibester/activity/GameActivity.kt b/app/src/main/java/ch/sdp/vibester/activity/GameActivity.kt index 1fb233140..a7a21c2d1 100644 --- a/app/src/main/java/ch/sdp/vibester/activity/GameActivity.kt +++ b/app/src/main/java/ch/sdp/vibester/activity/GameActivity.kt @@ -44,7 +44,7 @@ open class GameActivity : AppCompatActivity() { } fun decreaseBarTimer(myBar: ProgressBar) { - if (myBar.progress == maxTime/2 + 1 && myBar.progress > 5) { + if (myBar.progress == maxTime/2 && myBar.progress > 5) { myBar.progressTintList = ColorStateList.valueOf(getColor(R.color.maximum_yellow_red)) } else if (myBar.progress == 5) {