Skip to content

Commit

Permalink
#27 액티비티 전환 시 종료 메소드 finish() 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yellow-jam committed Jun 28, 2022
1 parent 01d717e commit 1f7f4ad
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class MainActivity : AppCompatActivity() {
val intent_budget = Intent(this, BudgetActivity::class.java)
startActivity(intent_budget)
overridePendingTransition(0, 0)
finish()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,21 @@ class MyPageActivity : AppCompatActivity() {
val intent_home = Intent(this, MainActivity::class.java)
startActivity(intent_home)
overridePendingTransition(0, 0);
finish()
}

binding.navTodo.setOnClickListener {
val intent_todo = Intent(this, ToDoActivity::class.java)
startActivity(intent_todo)
overridePendingTransition(0, 0);
finish()
}

binding.navSimulation.setOnClickListener {
val intent_simul = Intent(this, SimulationActivity::class.java)
startActivity(intent_simul)
overridePendingTransition(0, 0);
finish()
}

binding.navMap.setOnClickListener { // 지도
Expand All @@ -83,6 +86,7 @@ class MyPageActivity : AppCompatActivity() {
val intent_mypage = Intent(this, MyPageActivity::class.java)
startActivity(intent_mypage)
overridePendingTransition(0, 0);
finish()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,21 @@ class SimulationActivity : AppCompatActivity() {
val intent_home = Intent(this, MainActivity::class.java)
startActivity(intent_home)
overridePendingTransition(0, 0);
finish()
}

binding.navTodo.setOnClickListener {
val intent_todo = Intent(this, ToDoActivity::class.java)
startActivity(intent_todo)
overridePendingTransition(0, 0);
finish()
}

binding.navSimulation.setOnClickListener {
val intent_simul = Intent(this, SimulationActivity::class.java)
startActivity(intent_simul)
overridePendingTransition(0, 0);
finish()
}

binding.navMap.setOnClickListener {
Expand All @@ -69,6 +72,7 @@ class SimulationActivity : AppCompatActivity() {
val intent_mypage = Intent(this, MyPageActivity::class.java)
startActivity(intent_mypage)
overridePendingTransition(0, 0);
finish()
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,21 @@ class ToDoActivity : AppCompatActivity() {
val intent_home = Intent(this, MainActivity::class.java)
startActivity(intent_home)
overridePendingTransition(0, 0);
finish()
}

binding.navTodo.setOnClickListener {
val intent_todo = Intent(this, ToDoActivity::class.java)
startActivity(intent_todo)
overridePendingTransition(0, 0);
finish()
}

binding.navSimulation.setOnClickListener {
val intent_simul = Intent(this, SimulationActivity::class.java)
startActivity(intent_simul)
overridePendingTransition(0, 0);
finish()
}

binding.navMap.setOnClickListener {
Expand All @@ -106,6 +109,7 @@ class ToDoActivity : AppCompatActivity() {
val intent_mypage = Intent(this, MyPageActivity::class.java)
startActivity(intent_mypage)
overridePendingTransition(0, 0);
finish()
}
}
}

0 comments on commit 1f7f4ad

Please sign in to comment.