File tree Expand file tree Collapse file tree
app/src/main/java/com/moyerun/moyeorun_android Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import com.google.android.gms.auth.api.identity.SignInClient
1414import com.google.android.gms.common.api.ApiException
1515import com.google.android.gms.common.api.CommonStatusCodes
1616import com.moyerun.moyeorun_android.BuildConfig
17+ import com.moyerun.moyeorun_android.MainActivity
1718import com.moyerun.moyeorun_android.R
1819import com.moyerun.moyeorun_android.common.Lg
1920import com.moyerun.moyeorun_android.common.extension.observeEvent
@@ -68,8 +69,8 @@ class LoginActivity : AppCompatActivity() {
6869 observeEvent(viewModel.loginEvent) { event ->
6970 when (event) {
7071 is LoginEvent .RegisteredUser -> {
71- // Todo: 메인 화면으로 이동
72- Lg .d( " Login! " )
72+ startActivity( Intent ( this , MainActivity :: class .java))
73+ finish( )
7374 }
7475 is LoginEvent .NewUser -> {
7576 ProfileEditActivity .startActivity(this , event.signUpMetaData)
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import androidx.activity.result.contract.ActivityResultContracts
77import androidx.activity.viewModels
88import androidx.appcompat.app.AppCompatActivity
99import androidx.core.widget.doAfterTextChanged
10+ import com.moyerun.moyeorun_android.MainActivity
1011import com.moyerun.moyeorun_android.R
1112import com.moyerun.moyeorun_android.common.Lg
1213import com.moyerun.moyeorun_android.common.extension.*
@@ -122,8 +123,7 @@ class ProfileEditActivity : AppCompatActivity() {
122123 observeEvent(viewModel.profileEvent) {
123124 when (it) {
124125 ProfileEvent .SUCCESS_SIGN_UP -> {
125- // Todo: 환영 액티비티로 이동
126- Lg .d(" observeEvent : Go to welcome activity!" )
126+ startActivity(Intent (this , MainActivity ::class .java))
127127 }
128128 }
129129 }
You can’t perform that action at this time.
0 commit comments