From 3371a675e32957096e5b4a3c41de7a14c39b1148 Mon Sep 17 00:00:00 2001 From: yeoncheong Date: Wed, 19 Jul 2023 23:36:31 +0900 Subject: [PATCH] =?UTF-8?q?[Feat/#82]=20CommunicationActivity=20=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=20=EC=A0=84=EB=8B=AC=20=EB=A1=9C=EC=A7=81=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../onboarding/CommunicationActivity.kt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/sopt/umbba_android/presentation/onboarding/CommunicationActivity.kt b/app/src/main/java/com/sopt/umbba_android/presentation/onboarding/CommunicationActivity.kt index 946620db..917371c3 100644 --- a/app/src/main/java/com/sopt/umbba_android/presentation/onboarding/CommunicationActivity.kt +++ b/app/src/main/java/com/sopt/umbba_android/presentation/onboarding/CommunicationActivity.kt @@ -1,9 +1,12 @@ package com.sopt.umbba_android.presentation.onboarding import android.content.Intent +import android.os.Build import android.os.Bundle +import android.util.Log import com.sopt.umbba_android.R import com.sopt.umbba_android.databinding.ActivityCommunicationBinding +import com.sopt.umbba_android.domain.entity.User import com.sopt.umbba_android.util.binding.BindingActivity class CommunicationActivity : BindingActivity(R.layout.activity_communication) { @@ -15,7 +18,15 @@ class CommunicationActivity : BindingActivity(R.la private fun goInputInfoActivity() { binding.btnStart.setOnClickListener { - startActivity(Intent(this, InputInfoActivity::class.java)) + val userData = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { + intent.getParcelableExtra("userData", User::class.java) + } else { + intent.getParcelableExtra("userData") + } + Log.e("yeonjin", "communication parcelable : ${userData?.isReceiver}") + startActivity(Intent(this, InputInfoActivity::class.java).apply { + putExtra("userData", userData) + }) } } } \ No newline at end of file