From b1b5276cb2da370801046eb5222f007a28873342 Mon Sep 17 00:00:00 2001 From: eshc123 Date: Wed, 20 Aug 2025 18:07:21 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B4=88=EB=8C=80=EC=9E=A5=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=20=ED=9B=84=20=ED=99=88=EC=9C=BC=EB=A1=9C=20=EA=B0=88?= =?UTF-8?q?=20=EB=95=8C=20=EB=B0=94=ED=85=80=20=EC=8B=9C=ED=8A=B8=20?= =?UTF-8?q?=ED=8E=BC=EC=B3=90=EC=A0=B8=EC=9E=88=EB=8A=94=20=EC=9D=B4?= =?UTF-8?q?=EC=8A=88=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/plottwist/feature/main/ui/component/TukNavHost.kt | 3 ++- .../proposal_create/complete/CompleteProposeScreen.kt | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/feature/main/src/main/java/com/plottwist/feature/main/ui/component/TukNavHost.kt b/feature/main/src/main/java/com/plottwist/feature/main/ui/component/TukNavHost.kt index 617f4c96..bbb29b42 100644 --- a/feature/main/src/main/java/com/plottwist/feature/main/ui/component/TukNavHost.kt +++ b/feature/main/src/main/java/com/plottwist/feature/main/ui/component/TukNavHost.kt @@ -255,7 +255,8 @@ fun TukNavHost( popUpTo(Route.Home) { inclusive = true } - launchSingleTop = true + launchSingleTop = false + restoreState = false } ) } diff --git a/feature/proposal-create/src/main/java/com/plottwist/feature/proposal_create/complete/CompleteProposeScreen.kt b/feature/proposal-create/src/main/java/com/plottwist/feature/proposal_create/complete/CompleteProposeScreen.kt index e763fa95..5b849d3c 100644 --- a/feature/proposal-create/src/main/java/com/plottwist/feature/proposal_create/complete/CompleteProposeScreen.kt +++ b/feature/proposal-create/src/main/java/com/plottwist/feature/proposal_create/complete/CompleteProposeScreen.kt @@ -2,6 +2,7 @@ package com.plottwist.feature.proposal_create.complete import android.content.Context import android.content.Intent +import androidx.activity.compose.BackHandler import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement @@ -39,6 +40,10 @@ fun CompleteProposeScreen( val state by viewModel.collectAsState() val context = LocalContext.current + BackHandler { + navigateToHome() + } + viewModel.collectSideEffect { when (it) { CompleteProposeSideEffect.NavigateToHome -> navigateToHome()