Skip to content

Commit

Permalink
Merge pull request #472 from Futsch1/bugfixes
Browse files Browse the repository at this point in the history
Fix a crash in the interval editor
  • Loading branch information
Futsch1 authored Feb 5, 2025
2 parents c2794e1 + 037a3d0 commit 61ae603
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ android {
minSdk = 28
multiDexEnabled = true
targetSdk = 35
versionCode = 97
versionName = "1.15.2"
versionCode = 98
versionName = "1.15.3"
base.archivesName = "MedTimer"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class IntervalEditor(
intervalUnitToggle.check(intervalUnitToggle.getChildAt(unit.ordinal).id)
intervalUnitToggle.addOnButtonCheckedListener { _, checkedId, isChecked ->
val selectedUnit = checkedIntervalUnit(checkedId)
if (isChecked) {
if (isChecked && timeEdit.text.toString().isNotBlank()) {
interval.setValue(timeEdit.text.toString().toInt(), unit)
var value = interval.getValue(selectedUnit)
if (value == 0) {
Expand Down

0 comments on commit 61ae603

Please sign in to comment.