Skip to content

Commit

Permalink
[AND-250] Add separate text resource for "Add an option" placeholder.
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarVelikov committed Jan 16, 2025
1 parent 81af35f commit 681944c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public fun PollOptionList(
PollOptionInput(
modifier = Modifier.weight(1f),
value = item.title,
description = stringResource(id = R.string.stream_compose_poll_option_description),
description = stringResource(id = R.string.stream_compose_poll_option_placeholder),
innerPadding = if (item.pollOptionError == null) {
PaddingValues(horizontal = 16.dp, vertical = 18.dp)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@
<string name="stream_compose_poll_questions_description" translatable="false">Ask a question</string>
<string name="stream_compose_poll_option_title" translatable="false">Options</string>
<string name="stream_compose_poll_option_description" translatable="false">Add an option</string>
<string name="stream_compose_poll_option_placeholder" translatable="false">Add an option</string>
<string name="stream_compose_poll_option_error_duplicated" translatable="false">This is already an option</string>
<string name="stream_compose_poll_option_error_exceed" translatable="false">Type a number under %d</string>
<string name="stream_compose_poll_option_discard_dialog_title" translatable="false">Discard poll</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
android:id="@+id/option"
android:layout_width="match_parent"
android:layout_height="56dp"
android:hint="@string/stream_ui_poll_add_an_option_label"
android:hint="@string/stream_ui_poll_add_an_option_placeholder"
android:layout_marginTop="@dimen/stream_ui_spacing_small"
android:padding="@dimen/stream_ui_spacing_small"
android:gravity="center_vertical"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
<string name="stream_ui_poll_question_label">Question</string>
<string name="stream_ui_poll_ask_a_question_hint">Ask a question</string>
<string name="stream_ui_poll_options_label">Options</string>
<string name="stream_ui_poll_add_an_option_label">Add an Option</string>
<string name="stream_ui_poll_add_an_option_label">Add an option</string>
<string name="stream_ui_poll_add_an_option_placeholder">Add an option</string>
<string name="stream_ui_poll_multiple_answers_label">Multiple answers</string>
<string name="stream_ui_poll_max_number_of_answers_hint">Max number of answers</string>
<string name="stream_ui_poll_anonymous_poll_label">Anonymous poll</string>
Expand Down

0 comments on commit 681944c

Please sign in to comment.