Skip to content

Commit 9544201

Browse files
committed
Apply Spotless formatting
1 parent 6252f18 commit 9544201

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

  • Jetcaster/mobile/src/main/java/com/example/jetcaster/util

Jetcaster/mobile/src/main/java/com/example/jetcaster/util/Buttons.kt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717
package com.example.jetcaster.util
1818

1919
import androidx.compose.animation.core.animateFloat
20-
import androidx.compose.animation.core.animateFloatAsState
2120
import androidx.compose.animation.core.snap
2221
import androidx.compose.animation.core.spring
23-
import androidx.compose.animation.core.tween
2422
import androidx.compose.animation.core.updateTransition
2523
import androidx.compose.foundation.shape.CircleShape
2624
import androidx.compose.foundation.shape.RoundedCornerShape
@@ -69,15 +67,14 @@ fun ToggleFollowPodcastIconButton(isFollowed: Boolean, onClick: () -> Unit, modi
6967
} else {
7068
spring(
7169
dampingRatio = 0.6f,
72-
stiffness = 200f
70+
stiffness = 200f,
7371
)
7472
}
75-
}
73+
},
7674
) { followed ->
7775
if (followed) 360f else 0f
7876
}
7977

80-
8178
Icon(
8279
// Animated rotation when follow state changes
8380
painter = when {
@@ -88,7 +85,7 @@ fun ToggleFollowPodcastIconButton(isFollowed: Boolean, onClick: () -> Unit, modi
8885
isFollowed -> stringResource(R.string.cd_following)
8986
else -> stringResource(R.string.cd_not_following)
9087
},
91-
modifier = Modifier.rotate(iconRotation)
88+
modifier = Modifier.rotate(iconRotation),
9289
)
9390
}
9491
}

0 commit comments

Comments
 (0)