-
Notifications
You must be signed in to change notification settings - Fork 0
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
#25 [fix] 온보딩 테마 선택 뷰 이슈 해결 #28
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.
역시 에이스...
app/src/main/res/values/strings.xml
Outdated
@@ -3,7 +3,7 @@ | |||
<!-- onboarding --> | |||
<string name="onboarding_choice_theme_btn">다 선택했어</string> | |||
<string name="theme_text">하루의 시작</string> | |||
<string name="onboarding_choice_theme_speech">안녕 난 %s!\n나와 함께 루틴을 만들어볼까?</string> | |||
<string name="onboarding_choice_theme_speech">안녕 난 %s야!\n나와 함께 루틴을 만들어볼까?</string> |
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.
%s! 입니다!
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.
pull 받는 과정에서 conflict난 파일에서 잘못 받아온 것 같네요... 수정했습니다!!
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.
로직 수정하느라 수고해따잇!
|
||
private fun initSetSpeechText() { | ||
val nickname = viewModel.bearNickname.value ?: "" | ||
val message = getString(R.string.onboarding_choice_theme_speech).format(nickname) |
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.
.format()은 어떤 함수일까요??
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.
아 여기서 format은 nickname을 앞의 "%s"에 포맷팅하는데 사용됩니다!
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.
로직 해결까지 깔끔
@@ -70,4 +113,9 @@ class OnboardingActivity : | |||
.replace(R.id.fcv_onboarding_fragment, fragment) | |||
.commit() | |||
} | |||
|
|||
companion object { |
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.
companion이 그냥 변수 선언하는 것보다 어떤 면에서 더 좋은가요?
📑 Work Description
🛠️ Issue
📷 Screenshot
fix.onboarding.routine.theme.mp4
💬 To Reviewers