Skip to content

Commit

Permalink
feat : Main 뒤로가기 시 앱 종료 #2
Browse files Browse the repository at this point in the history
  • Loading branch information
SeonHwan-Kim committed Apr 7, 2023
1 parent a2ceb46 commit 645105c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/org/android/go/sopt/login/LoginActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class LoginActivity : AppCompatActivity() {
val intent = Intent(this, MainActivity::class.java)
intent.putExtra("name", name)
intent.putExtra("specialty", specialty)
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent)
showShortToast(getString(R.string.login_success_login_msg))
} else {
Expand Down

0 comments on commit 645105c

Please sign in to comment.