-
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
#35 한판승부생성 화면전환 기능 구현 #54
Conversation
나가기 다이얼로그 기능 구현 한판승부 생성 기능 구현 미션상세 이동 기능 구현
3035611
to
3d2406e
Compare
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.
굿굿
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.
나이가 60이다 70이다 하는 것으로 그 사람이 늙었다 젊었다 할 수 없다. 늙고 젊은 것은 그 사람의 신념이 늙었느냐 젊었느냐 하는데 있다. -맥아더
viewModel.missionList.observe(this) { | ||
missionAdapter.submitList(it) | ||
} | ||
viewModel.isCreateSuccess.observe(this) { | ||
if (it == true) { |
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.
if (it == true) { | |
if (it) { |
이렇게 바꿔도 되지 않나욤?
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.
오 맞네 감사요
@@ -89,7 +151,7 @@ class CreateShortGameActivity : | |||
@JvmStatic | |||
@BindingAdapter("setContentLength") | |||
fun setContentLength(view: TextView, length: Int) { | |||
if (length >= MAX_LENGTH) { | |||
if (length > MAX_LENGTH) { |
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.
저도 수정하겟슴둥
titleText?.let { | ||
binding.dialogTitle.visibility = View.VISIBLE | ||
binding.dialogTitle.text = it | ||
} ?: kotlin.run { | ||
binding.dialogTitle.visibility = View.GONE | ||
} | ||
bodyText?.let { | ||
binding.dialogBody.visibility = View.VISIBLE | ||
binding.dialogBody.text = it | ||
} ?: kotlin.run { | ||
binding.dialogBody.visibility = View.GONE | ||
} | ||
confirmButtonText?.let { | ||
binding.btnRight.text = it | ||
} | ||
dismissButtonText?.let { | ||
binding.btnLeft.text = it | ||
} | ||
|
||
confirmClickListener?.let { | ||
binding.btnRight.visibility = View.VISIBLE | ||
binding.btnRight.setOnClickListener { | ||
confirmClickListener?.invoke() | ||
} | ||
} ?: kotlin.run { | ||
binding.btnRight.visibility = View.GONE | ||
} | ||
|
||
dismissClickListener?.let { | ||
binding.btnLeft.visibility = View.VISIBLE | ||
binding.btnLeft.setOnClickListener { | ||
dismissClickListener?.invoke() | ||
} | ||
} ?: run { | ||
binding.btnLeft.visibility = View.GONE | ||
} |
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.
스코프 함수 장인이네요 ㅎㄷㄷ
import sopt.uni.presentation.entity.MissionIdPosition | ||
|
||
class MissionDetailCreateViewModel(savedStateHandle: SavedStateHandle) : ViewModel() { | ||
val missionId = savedStateHandle.get<MissionIdPosition>(MissionDetailCreateActivity.MISSION_ID_POSITION) |
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.
나 savedStateHadle
좀 알려줘잉
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.
나중에 한번 설명할게연
📌 관련 이슈
closed #35
📷 screenshot
KakaoTalk_20230718_231731588.mp4
📝 Work Desciption
📚 Reference 혹은 궁금한 사항들
다이얼로그 재사용할 수 있게 만들어둔거 나중에 설명드릴게