Skip to content

Commit cb6b32e

Browse files
jakerosemangithub-actions[bot]
authored andcommitted
Apply Spotless
1 parent a9f5ba8 commit cb6b32e

File tree

1 file changed

+5
-5
lines changed
  • compose/snippets/src/main/java/com/example/compose/snippets/layouts

1 file changed

+5
-5
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/layouts/PagerSnippets.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ import androidx.compose.ui.unit.dp
7272
import androidx.compose.ui.util.lerp
7373
import coil.compose.rememberAsyncImagePainter
7474
import com.example.compose.snippets.util.rememberRandomSampleImageUrl
75+
import kotlin.math.absoluteValue
7576
import kotlinx.coroutines.delay
7677
import kotlinx.coroutines.launch
77-
import kotlin.math.absoluteValue
7878

7979
/*
8080
* Copyright 2023 The Android Open Source Project
@@ -93,7 +93,7 @@ import kotlin.math.absoluteValue
9393
*/
9494

9595
@Composable
96-
fun PagerExamples(){
96+
fun PagerExamples() {
9797
AutoAdvancePager(
9898
listOf(
9999
Color.Red,
@@ -277,9 +277,9 @@ fun PagerWithEffect() {
277277
// scroll position. We use the absolute value which allows us to mirror
278278
// any effects for both directions
279279
val pageOffset = (
280-
(pagerState.currentPage - page) + pagerState
281-
.currentPageOffsetFraction
282-
).absoluteValue
280+
(pagerState.currentPage - page) + pagerState
281+
.currentPageOffsetFraction
282+
).absoluteValue
283283

284284
// We animate the alpha, between 50% and 100%
285285
alpha = lerp(

0 commit comments

Comments
 (0)