Skip to content

Commit

Permalink
Navigate 실패하는 케이스 복원
Browse files Browse the repository at this point in the history
  • Loading branch information
Pluu committed Aug 7, 2024
1 parent 256ba7e commit 0672e70
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -179,7 +178,9 @@ private fun NavGraphBuilder.installDetailScreen(
)
) { entry ->
// Read, Bundle data
val color = entry.toRoute<PalletColor>()
val arguments = requireNotNull(entry.arguments)
val color: PalletColor = arguments.extraNotNullSerializable(Const.EXTRA_PALLET)

// Navigate
DetailUi(
palletColor = color,
Expand Down

0 comments on commit 0672e70

Please # to comment.