Skip to content

Commit 6d3c144

Browse files
authored
Merge pull request #63 from Nexters/feature/home-clear-after-create-proposal
초대장 생성 후 홈으로 이동 시 바텀 시트 펼쳐져있는 이슈를 수정합니다.
2 parents 1fa559b + b1b5276 commit 6d3c144

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

feature/main/src/main/java/com/plottwist/feature/main/ui/component/TukNavHost.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ fun TukNavHost(
255255
popUpTo(Route.Home) {
256256
inclusive = true
257257
}
258-
launchSingleTop = true
258+
launchSingleTop = false
259+
restoreState = false
259260
}
260261
)
261262
}

feature/proposal-create/src/main/java/com/plottwist/feature/proposal_create/complete/CompleteProposeScreen.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.plottwist.feature.proposal_create.complete
22

33
import android.content.Context
44
import android.content.Intent
5+
import androidx.activity.compose.BackHandler
56
import androidx.compose.foundation.background
67
import androidx.compose.foundation.clickable
78
import androidx.compose.foundation.layout.Arrangement
@@ -39,6 +40,10 @@ fun CompleteProposeScreen(
3940
val state by viewModel.collectAsState()
4041
val context = LocalContext.current
4142

43+
BackHandler {
44+
navigateToHome()
45+
}
46+
4247
viewModel.collectSideEffect {
4348
when (it) {
4449
CompleteProposeSideEffect.NavigateToHome -> navigateToHome()

0 commit comments

Comments
 (0)