-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat/#82] 초대하는 측 / 초대받는 측 분기처리 #87
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다 !!! 새로운 것도 알게되서 좋았어요 post 가봅시다아아ㅏ =))))
|
||
@Parcelize | ||
data class User( | ||
var isReceiver: Boolean, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isReceiver도 User에 넣으셨군여 저는 개인적으로 나중에는 안쓰긴해도 넣는게 더 낫다고 생각했어서 좋은거같습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
온보딩에서 수집되는 모든 정보가 딱 온보딩 과정에서만 사용하기 때문에 isReceiver도 같이 관리하기로 했습니다!!
val userData = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { | ||
intent.getParcelableExtra("userData", User::class.java) | ||
} else { | ||
intent.getParcelableExtra<User>("userData") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 이제 이렇게 할게요 진짜로 ㄷㅐ박... 새로운 사실 알게됨
putExtra("section")은 이제 그만 ~>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿굿
데이터 클래스를 한번에 묶어서 보낼 수 있어서 좋더라고요
근데 getParcelableExtra가 지금 deprecated 되어서 버전 따라 보내줘야하더라고요
이것만 신경쓰면 완전 편합니다!!!
user.name = binding.etName.text.toString() | ||
user.gender = | ||
if (binding.chip1.isChecked) { | ||
binding.chip1.text.toString() | ||
} else if (binding.chip2.isChecked){ | ||
binding.chip2.text.toString() | ||
} else { | ||
null | ||
} | ||
user.bornYear = binding.etYear.text.toString().toInt() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
제가 with(binding)을 자주 써서 그런가
binding 이 중복되면 with(binding) 해주고시퍼요 haha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
바인딩으로 묶었습니다~
🎀 Related Issues
close #82
🤔 What Did You Do