Skip to content

Commit 681944c

Browse files
author
PetarVelikov
committed
[AND-250] Add separate text resource for "Add an option" placeholder.
1 parent 81af35f commit 681944c

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/messages/attachments/poll/PollOptionList.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public fun PollOptionList(
136136
PollOptionInput(
137137
modifier = Modifier.weight(1f),
138138
value = item.title,
139-
description = stringResource(id = R.string.stream_compose_poll_option_description),
139+
description = stringResource(id = R.string.stream_compose_poll_option_placeholder),
140140
innerPadding = if (item.pollOptionError == null) {
141141
PaddingValues(horizontal = 16.dp, vertical = 18.dp)
142142
} else {

stream-chat-android-compose/src/main/res/values/strings.xml

+1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@
207207
<string name="stream_compose_poll_questions_description" translatable="false">Ask a question</string>
208208
<string name="stream_compose_poll_option_title" translatable="false">Options</string>
209209
<string name="stream_compose_poll_option_description" translatable="false">Add an option</string>
210+
<string name="stream_compose_poll_option_placeholder" translatable="false">Add an option</string>
210211
<string name="stream_compose_poll_option_error_duplicated" translatable="false">This is already an option</string>
211212
<string name="stream_compose_poll_option_error_exceed" translatable="false">Type a number under %d</string>
212213
<string name="stream_compose_poll_option_discard_dialog_title" translatable="false">Discard poll</string>

stream-chat-android-ui-components/src/main/res/layout/stream_ui_poll_option.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
android:id="@+id/option"
2424
android:layout_width="match_parent"
2525
android:layout_height="56dp"
26-
android:hint="@string/stream_ui_poll_add_an_option_label"
26+
android:hint="@string/stream_ui_poll_add_an_option_placeholder"
2727
android:layout_marginTop="@dimen/stream_ui_spacing_small"
2828
android:padding="@dimen/stream_ui_spacing_small"
2929
android:gravity="center_vertical"

stream-chat-android-ui-components/src/main/res/values/strings.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
<string name="stream_ui_poll_question_label">Question</string>
1919
<string name="stream_ui_poll_ask_a_question_hint">Ask a question</string>
2020
<string name="stream_ui_poll_options_label">Options</string>
21-
<string name="stream_ui_poll_add_an_option_label">Add an Option</string>
21+
<string name="stream_ui_poll_add_an_option_label">Add an option</string>
22+
<string name="stream_ui_poll_add_an_option_placeholder">Add an option</string>
2223
<string name="stream_ui_poll_multiple_answers_label">Multiple answers</string>
2324
<string name="stream_ui_poll_max_number_of_answers_hint">Max number of answers</string>
2425
<string name="stream_ui_poll_anonymous_poll_label">Anonymous poll</string>

0 commit comments

Comments
 (0)