From 64eb6a93ae8bb9714e8a0c92065425dabdef2f84 Mon Sep 17 00:00:00 2001 From: rozPierog Date: Fri, 22 Jul 2022 07:21:33 +0200 Subject: [PATCH] ktlint --- .../com/omelan/cofi/components/StepItem.kt | 4 ++-- .../com/omelan/cofi/pages/RecipeDetails.kt | 22 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/src/main/java/com/omelan/cofi/components/StepItem.kt b/app/src/main/java/com/omelan/cofi/components/StepItem.kt index 4545d287..de1c9483 100644 --- a/app/src/main/java/com/omelan/cofi/components/StepItem.kt +++ b/app/src/main/java/com/omelan/cofi/components/StepItem.kt @@ -101,8 +101,8 @@ fun StepListItemPreview() { step = Step( id = 0, name = "Somebody once told me the world is gonna roll me I ain't the sharpest " + - "tool in the shed She was looking kind of dumb with her finger and her thumb " + - "In the shape of an \"L\" on her forehead", + "tool in the shed She was looking kind of dumb with her finger and her thumb " + + "In the shape of an \"L\" on her forehead", time = 35.toMillis(), type = StepType.WATER, value = 60, diff --git a/app/src/main/java/com/omelan/cofi/pages/RecipeDetails.kt b/app/src/main/java/com/omelan/cofi/pages/RecipeDetails.kt index 2dd30102..16c66c1f 100644 --- a/app/src/main/java/com/omelan/cofi/pages/RecipeDetails.kt +++ b/app/src/main/java/com/omelan/cofi/pages/RecipeDetails.kt @@ -10,11 +10,13 @@ import android.app.PictureInPictureParams import android.graphics.Rect import android.media.MediaPlayer import android.os.Build -import android.util.Log import android.util.Rational import androidx.annotation.RequiresApi -import androidx.compose.animation.* -import androidx.compose.animation.core.* +import androidx.compose.animation.Animatable +import androidx.compose.animation.core.Animatable +import androidx.compose.animation.core.AnimationEndReason +import androidx.compose.animation.core.LinearEasing +import androidx.compose.animation.core.tween import androidx.compose.animation.graphics.ExperimentalAnimationGraphicsApi import androidx.compose.animation.graphics.res.animatedVectorResource import androidx.compose.animation.graphics.res.rememberAnimatedVectorPainter @@ -26,13 +28,8 @@ import androidx.compose.foundation.lazy.* import androidx.compose.foundation.selection.toggleable import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.icons.Icons -import androidx.compose.material.icons.rounded.* +import androidx.compose.material.icons.rounded.ArrowBack import androidx.compose.material3.* -import androidx.compose.material3.FloatingActionButtonDefaults -import androidx.compose.material3.Icon -import androidx.compose.material3.IconButton -import androidx.compose.material3.Text -import androidx.compose.material3.TextButton import androidx.compose.material3.windowsizeclass.ExperimentalMaterial3WindowSizeClassApi import androidx.compose.material3.windowsizeclass.WindowSizeClass import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass @@ -46,7 +43,10 @@ import androidx.compose.ui.graphics.toAndroidRect import androidx.compose.ui.input.nestedscroll.nestedScroll import androidx.compose.ui.layout.boundsInWindow import androidx.compose.ui.layout.onGloballyPositioned -import androidx.compose.ui.platform.* +import androidx.compose.ui.platform.LocalClipboardManager +import androidx.compose.ui.platform.LocalConfiguration +import androidx.compose.ui.platform.LocalContext +import androidx.compose.ui.platform.testTag import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.AnnotatedString @@ -298,7 +298,7 @@ fun RecipeDetails( ) { derivedStateOf { windowSizeClass.widthSizeClass == WindowWidthSizeClass.Compact || - (configuration.screenHeightDp / configuration.screenWidthDp.toFloat() > 1.3) + (configuration.screenHeightDp / configuration.screenWidthDp.toFloat() > 1.3) } }