diff --git a/app/src/main/java/com/omelan/cofi/components/OutlinedNumbersField.kt b/app/src/main/java/com/omelan/cofi/components/OutlinedNumbersField.kt index 96c11eb2..b9210624 100644 --- a/app/src/main/java/com/omelan/cofi/components/OutlinedNumbersField.kt +++ b/app/src/main/java/com/omelan/cofi/components/OutlinedNumbersField.kt @@ -46,7 +46,7 @@ fun OutlinedNumbersField( onValueChange(newValue.removePrefix("0")) } } else if (newValue.startsWith(".")) { - onValueChange("0${newValue}") + onValueChange("0$newValue") } else if (newValue.isBlank()) { onValueChange("0") } diff --git a/app/src/main/java/com/omelan/cofi/pages/RecipeEdit.kt b/app/src/main/java/com/omelan/cofi/pages/RecipeEdit.kt index 4b7b9d52..cc8b0c02 100644 --- a/app/src/main/java/com/omelan/cofi/pages/RecipeEdit.kt +++ b/app/src/main/java/com/omelan/cofi/pages/RecipeEdit.kt @@ -228,7 +228,7 @@ fun RecipeEdit( ) { derivedStateOf { windowSizeClass.widthSizeClass == WindowWidthSizeClass.Compact || - (configuration.screenHeightDp > configuration.screenWidthDp) + (configuration.screenHeightDp > configuration.screenWidthDp) } } diff --git a/app/src/main/java/com/omelan/cofi/pages/settings/TimerSettings.kt b/app/src/main/java/com/omelan/cofi/pages/settings/TimerSettings.kt index 0e3c53f8..78ab17a1 100644 --- a/app/src/main/java/com/omelan/cofi/pages/settings/TimerSettings.kt +++ b/app/src/main/java/com/omelan/cofi/pages/settings/TimerSettings.kt @@ -90,7 +90,10 @@ fun TimerSettings(goBack: () -> Unit) { }, navigationIcon = { IconButton(onClick = goBack) { - Icon(imageVector = Icons.AutoMirrored.Rounded.ArrowBack, contentDescription = null) + Icon( + imageVector = Icons.AutoMirrored.Rounded.ArrowBack, + contentDescription = null, + ) } }, scrollBehavior = appBarBehavior, diff --git a/app/src/test/java/com/omelan/cofi/utils/NumberUtilsKtTest.kt b/app/src/test/java/com/omelan/cofi/utils/NumberUtilsKtTest.kt index f73be941..2f7651f0 100644 --- a/app/src/test/java/com/omelan/cofi/utils/NumberUtilsKtTest.kt +++ b/app/src/test/java/com/omelan/cofi/utils/NumberUtilsKtTest.kt @@ -46,5 +46,4 @@ class NumberUtilsKtTest : TestCase() { assertEquals(entry.value, entry.key.safeToInt()) } } - }