From 3b2c8953aecfd897cb7c30cb65bb8d1dd2090ece Mon Sep 17 00:00:00 2001 From: Sangho Kim Date: Mon, 8 Jul 2024 07:11:11 +0900 Subject: [PATCH] =?UTF-8?q?[ADD/#33]=20=ED=9A=8C=EC=9B=90=EA=B0=80?= =?UTF-8?q?=EC=9E=85=20=EB=A1=9C=EC=A7=81=20intent=20=EC=97=B0=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../orange/presentation/auth/login/LoginActivity.kt | 1 + .../presentation/auth/signup/TermBottomSheet.kt | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/presentation/src/main/java/co/orange/presentation/auth/login/LoginActivity.kt b/presentation/src/main/java/co/orange/presentation/auth/login/LoginActivity.kt index 2afbd9e7..c6f58e32 100644 --- a/presentation/src/main/java/co/orange/presentation/auth/login/LoginActivity.kt +++ b/presentation/src/main/java/co/orange/presentation/auth/login/LoginActivity.kt @@ -25,6 +25,7 @@ class LoginActivity : BaseActivity(R.layout.activity_login Intent(this, SignUpActivity::class.java).apply { startActivity(this) } + finish() } } } diff --git a/presentation/src/main/java/co/orange/presentation/auth/signup/TermBottomSheet.kt b/presentation/src/main/java/co/orange/presentation/auth/signup/TermBottomSheet.kt index f9bd9518..3a61e024 100644 --- a/presentation/src/main/java/co/orange/presentation/auth/signup/TermBottomSheet.kt +++ b/presentation/src/main/java/co/orange/presentation/auth/signup/TermBottomSheet.kt @@ -1,8 +1,10 @@ package co.orange.presentation.auth.signup +import android.content.Intent import android.os.Bundle import android.view.View import androidx.fragment.app.activityViewModels +import co.orange.presentation.auth.submit.SubmitActivity import kr.genti.core.base.BaseBottomSheet import kr.genti.core.extension.setOnSingleClickListener import kr.genti.presentation.R @@ -35,10 +37,11 @@ class TermBottomSheet : private fun initSubmitBtnListener() { binding.btnSubmit.setOnSingleClickListener { -// Intent(this, MainActivity::class.java).apply { -// startActivity(this) -// } -// finish() + Intent(requireActivity(), SubmitActivity::class.java).apply { + startActivity(this) + } + requireActivity().finish() + dismiss() } } }