-
Notifications
You must be signed in to change notification settings - Fork 95
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
Make counter sample consistent across phone and watch #1991
Conversation
…iption for counter sample
…ch description for counter sample" This reverts commit b3a9126.
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.
Looking good, just a comment regarding the value placeholder
@@ -72,7 +72,8 @@ | |||
<!-- Counter screen --> | |||
<string name="app_helper_counter_label">Counter: %1$s</string> | |||
<string name="app_helper_counter_increase_btn_content_description">Increase counter</string> | |||
<string name="app_helper_counter_increase_explanation">Open the datalayer sample on your watch to observe how the counter number is incremented</string> | |||
<string name="app_helper_counter_message">Value: </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.
for proper translation, the placeholder for the value should be in the string definition, e.g.: Value: %1$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.
Thanks, fixed
Text( | ||
modifier = Modifier | ||
.padding(16.dp), | ||
text = stringResource(R.string.app_helper_counter_message) + state.counter, |
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.
after adding the placeholder to the string definition, this should be changed to:
text = stringResource(R.string.app_helper_counter_message, state.counter),
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.
thanks, fixed
WHAT
Make counter sample consistent across phone and watch
WHY
To improve understanding of what the sample shows
HOW
Rename description and labels, use the same button
Checklist 📋