Skip to content

Commit

Permalink
comment out answerText
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajitxyz committed Jan 8, 2025
1 parent 5a519df commit 970e083
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,22 @@ class TextInputViewModel private constructor(
checkPendingAnswerError(userAnswerState.answerErrorCategory)
}

//another approach came in my mind
// make a function isUserInputAnswer(): Boolean
// if user input an answer (means isAnswerAvailable = true and answerText != null)
// return true
//subha hint

//if user input somthing "ABCD "and hint comes then [isAnswerAvailable is true and answerText = "ABCD"]
override fun areContentsTheSame(other: StateItemViewModel): Boolean {
if (this === other) return true
if (other !is TextInputViewModel) return false
return (
hasConversationView == other.hasConversationView &&
isSplitView == other.isSplitView &&
pendingAnswerError == other.pendingAnswerError &&
answerText == other.answerText &&
isAnswerAvailable.get() == other.isAnswerAvailable.get() &&
// answerText == other.answerText &&
// isAnswerAvailable.get() == other.isAnswerAvailable.get() &&
errorMessage.get() == other.errorMessage.get() &&
hintText == other.hintText
)
Expand Down

0 comments on commit 970e083

Please sign in to comment.