Skip to content

Commit

Permalink
[fix]: intent flag 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
kangyuri1114 committed Jun 9, 2024
1 parent 1deb0f6 commit 765e630
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ class LoginActivity @Inject constructor(

private fun navigateToSubmitDev() {
intent = Intent(this, SubmitDevActivity::class.java)
.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP)
startActivity(intent)
finish()
}

private fun setLoginViewPager() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,12 @@ class SubmitDevActivity @Inject constructor() : AppCompatActivity() {
viewModel.submitDevInfoSuccess.flowWithLifecycle(lifecycle).onEach { success ->
if (success) {
navigateToMain()
finish()
}
}.launchIn(lifecycleScope)
}

private fun navigateToMain() {
intent = Intent(this, MainActivity::class.java)
.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP)
startActivity(intent)
finish()
}
Expand Down

0 comments on commit 765e630

Please sign in to comment.