Skip to content

Commit

Permalink
made changes in textinputviewmodel
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajitxyz committed Jan 10, 2025
1 parent f730694 commit 6fe7093
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TextInputViewModel private constructor(
userAnswerState: UserAnswerState
) : StateItemViewModel(ViewType.TEXT_INPUT_INTERACTION), InteractionAnswerHandler {
//subha hint make
var answerText: CharSequence = userAnswerState.textInputAnswer
lateinit var answerText: CharSequence
private var answerErrorCetegory: AnswerErrorCategory = AnswerErrorCategory.NO_ERROR
val hintText: CharSequence = deriveHintText(interaction)
private var pendingAnswerError: String? = null
Expand All @@ -41,6 +41,10 @@ class TextInputViewModel private constructor(
val errorMessage = ObservableField<String>("")

init {
Log.d("testhint","called init in textinputviewmodel")
if (answerText.isEmpty()) {
answerText = userAnswerState.textInputAnswer
}
val callback: Observable.OnPropertyChangedCallback =
object : Observable.OnPropertyChangedCallback() {
override fun onPropertyChanged(sender: Observable, propertyId: Int) {
Expand Down

0 comments on commit 6fe7093

Please sign in to comment.