Skip to content

Commit

Permalink
#22 feat : 로그아웃, 회원 탈퇴 시 화면 이동 intent flag 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
yy0ung committed Nov 25, 2023
1 parent eede3be commit b01a522
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ class MyPageFragment : BaseFragment<FragmentMyPageBinding>(R.layout.fragment_my_
viewModel.events.collect { event ->
when (event) {
is MyEditPageEvent.NavigateToIntro -> {
(activity as MainActivity).finish()
val intent = Intent(context, IntroActivity::class.java)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
startActivity(intent)
}
}
Expand Down

0 comments on commit b01a522

Please sign in to comment.