Skip to content

Commit 55cb69f

Browse files
committed
android: remove fade from transition
1 parent 5bc1dd2 commit 55cb69f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

android/app/src/main/java/me/kavishdevar/librepods/MainActivity.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ import androidx.compose.animation.core.animateFloat
4343
import androidx.compose.animation.core.infiniteRepeatable
4444
import androidx.compose.animation.core.rememberInfiniteTransition
4545
import androidx.compose.animation.core.tween
46-
import androidx.compose.animation.fadeIn
47-
import androidx.compose.animation.fadeOut
4846
import androidx.compose.animation.slideInHorizontally
4947
import androidx.compose.animation.slideOutHorizontally
5048
import androidx.compose.foundation.Canvas
@@ -325,25 +323,25 @@ fun Main() {
325323
slideInHorizontally(
326324
initialOffsetX = { it },
327325
animationSpec = tween(durationMillis = 300)
328-
) + fadeIn(animationSpec = tween(durationMillis = 300))
326+
) // + fadeIn(animationSpec = tween(durationMillis = 300))
329327
},
330328
exitTransition = {
331329
slideOutHorizontally(
332330
targetOffsetX = { -it/4 },
333331
animationSpec = tween(durationMillis = 300)
334-
) + fadeOut(animationSpec = tween(durationMillis = 150))
332+
) // + fadeOut(animationSpec = tween(durationMillis = 150))
335333
},
336334
popEnterTransition = {
337335
slideInHorizontally(
338336
initialOffsetX = { -it/4 },
339337
animationSpec = tween(durationMillis = 300)
340-
) + fadeIn(animationSpec = tween(durationMillis = 300))
338+
) // + fadeIn(animationSpec = tween(durationMillis = 300))
341339
},
342340
popExitTransition = {
343341
slideOutHorizontally(
344342
targetOffsetX = { it },
345343
animationSpec = tween(durationMillis = 300)
346-
) + fadeOut(animationSpec = tween(durationMillis = 150))
344+
) // + fadeOut(animationSpec = tween(durationMillis = 150))
347345
}
348346
) {
349347
composable("settings") {

0 commit comments

Comments
 (0)