From ca8930430a6b3d9039b9a32665a8337d5d5ce46f Mon Sep 17 00:00:00 2001 From: chanu Date: Mon, 14 Oct 2024 00:03:43 +0900 Subject: [PATCH 1/2] =?UTF-8?q?#101=20[hotfix]=20:=20=EC=8A=A4=ED=94=8C?= =?UTF-8?q?=EB=9E=98=EC=8B=9C=20=EB=AC=B4=ED=95=9C=20=EB=A1=9C=EB=94=A9=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/teamwable/main_compose/splash/SplashScreen.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/feature/main-compose/src/main/java/com/teamwable/main_compose/splash/SplashScreen.kt b/feature/main-compose/src/main/java/com/teamwable/main_compose/splash/SplashScreen.kt index 1b95bf45..daba6d86 100644 --- a/feature/main-compose/src/main/java/com/teamwable/main_compose/splash/SplashScreen.kt +++ b/feature/main-compose/src/main/java/com/teamwable/main_compose/splash/SplashScreen.kt @@ -14,7 +14,6 @@ import androidx.lifecycle.flowWithLifecycle import com.airbnb.lottie.LottieComposition import com.airbnb.lottie.compose.LottieAnimation import com.airbnb.lottie.compose.LottieCompositionSpec -import com.airbnb.lottie.compose.LottieConstants import com.airbnb.lottie.compose.animateLottieCompositionAsState import com.airbnb.lottie.compose.rememberLottieComposition import com.teamwable.designsystem.theme.WableTheme @@ -32,7 +31,6 @@ fun SplashRoute( val composition by rememberLottieComposition(LottieCompositionSpec.RawRes(R.raw.wable_splash)) val progress by animateLottieCompositionAsState( composition = composition, - iterations = LottieConstants.IterateForever, ) LaunchedEffect(Unit) { From 7c6523382190361744ed2c39f7524e9dd250bb3c Mon Sep 17 00:00:00 2001 From: chanu Date: Mon, 14 Oct 2024 01:59:30 +0900 Subject: [PATCH 2/2] =?UTF-8?q?#101=20[chore]=20:=20=EB=B6=88=ED=95=84?= =?UTF-8?q?=EC=9A=94=ED=95=9C=20=EB=B3=80=EC=88=98=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/teamwable/main_compose/splash/SplashScreen.kt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/feature/main-compose/src/main/java/com/teamwable/main_compose/splash/SplashScreen.kt b/feature/main-compose/src/main/java/com/teamwable/main_compose/splash/SplashScreen.kt index daba6d86..ffedd0ab 100644 --- a/feature/main-compose/src/main/java/com/teamwable/main_compose/splash/SplashScreen.kt +++ b/feature/main-compose/src/main/java/com/teamwable/main_compose/splash/SplashScreen.kt @@ -14,7 +14,6 @@ import androidx.lifecycle.flowWithLifecycle import com.airbnb.lottie.LottieComposition import com.airbnb.lottie.compose.LottieAnimation import com.airbnb.lottie.compose.LottieCompositionSpec -import com.airbnb.lottie.compose.animateLottieCompositionAsState import com.airbnb.lottie.compose.rememberLottieComposition import com.teamwable.designsystem.theme.WableTheme import com.teamwable.main_compose.R @@ -29,9 +28,6 @@ fun SplashRoute( ) { val lifecycleOwner = LocalLifecycleOwner.current val composition by rememberLottieComposition(LottieCompositionSpec.RawRes(R.raw.wable_splash)) - val progress by animateLottieCompositionAsState( - composition = composition, - ) LaunchedEffect(Unit) { delay(2000) @@ -50,21 +46,18 @@ fun SplashRoute( WableSplashScreen( composition = composition, - progress = progress, ) } @Composable fun WableSplashScreen( composition: LottieComposition?, - progress: Float, ) { Box( modifier = Modifier.fillMaxSize(), ) { LottieAnimation( composition = composition, - progress = { progress }, modifier = Modifier.align(Alignment.Center), ) } @@ -76,7 +69,6 @@ fun GreetingPreview() { WableTheme { WableSplashScreen( composition = rememberLottieComposition(LottieCompositionSpec.RawRes(R.raw.wable_splash)).value, - progress = 1.0f, ) } }