From 0672e70b79a906153a60908d17a28730afe4e710 Mon Sep 17 00:00:00 2001 From: pluu Date: Wed, 7 Aug 2024 22:54:41 +0900 Subject: [PATCH] =?UTF-8?q?Navigate=20=EC=8B=A4=ED=8C=A8=ED=95=98=EB=8A=94?= =?UTF-8?q?=20=EC=BC=80=EC=9D=B4=EC=8A=A4=20=EB=B3=B5=EC=9B=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/pluu/webtoon/main/container/ui/AppNavigation.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/features/ui-main-container/src/main/java/com/pluu/webtoon/main/container/ui/AppNavigation.kt b/features/ui-main-container/src/main/java/com/pluu/webtoon/main/container/ui/AppNavigation.kt index fc7f9cbf..a4946729 100644 --- a/features/ui-main-container/src/main/java/com/pluu/webtoon/main/container/ui/AppNavigation.kt +++ b/features/ui-main-container/src/main/java/com/pluu/webtoon/main/container/ui/AppNavigation.kt @@ -15,7 +15,6 @@ import androidx.navigation.compose.NavHost import androidx.navigation.compose.composable import androidx.navigation.compose.rememberNavController import androidx.navigation.navArgument -import androidx.navigation.toRoute import com.pluu.utils.extraNotNullSerializable import com.pluu.webtoon.Const import com.pluu.webtoon.detail.ui.compose.DetailUi @@ -179,7 +178,9 @@ private fun NavGraphBuilder.installDetailScreen( ) ) { entry -> // Read, Bundle data - val color = entry.toRoute() + val arguments = requireNotNull(entry.arguments) + val color: PalletColor = arguments.extraNotNullSerializable(Const.EXTRA_PALLET) + // Navigate DetailUi( palletColor = color,