Skip to content

Commit

Permalink
contert char to string
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajitxyz committed Jan 16, 2025
1 parent a0cf2a1 commit 6869d7e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class TextInputViewModel private constructor(
private val translationController: TranslationController,
userAnswerState: UserAnswerState
) : StateItemViewModel(ViewType.TEXT_INPUT_INTERACTION), InteractionAnswerHandler {
//subha hint
var answerText: ObservableField<CharSequence> = ObservableField(DEFAULT_TEXT_INPUT)
private var answerErrorCetegory: AnswerErrorCategory = AnswerErrorCategory.NO_ERROR
val hintText: CharSequence = deriveHintText(interaction)
Expand All @@ -43,7 +44,7 @@ class TextInputViewModel private constructor(
@JvmName("setAnswerText1")
fun setAnswerText(text: CharSequence, isAnswerAvailable: Boolean) {
Log.d("testem", "in setAnswerText $text")
this.answerText.set(text)
this.answerText.set(text.toString().trim())
this.isAnswerAvailable.set(isAnswerAvailable)
}

Expand Down

0 comments on commit 6869d7e

Please sign in to comment.