diff --git a/workflow-ui/core-common/src/main/java/com/squareup/workflow1/ui/TextController.kt b/workflow-ui/core-common/src/main/java/com/squareup/workflow1/ui/TextController.kt index bef82ccffe..7cc6af972a 100644 --- a/workflow-ui/core-common/src/main/java/com/squareup/workflow1/ui/TextController.kt +++ b/workflow-ui/core-common/src/main/java/com/squareup/workflow1/ui/TextController.kt @@ -87,4 +87,17 @@ private class TextControllerImpl(initialValue: String) : TextController { set(value) { _textValue.value = value } + + override fun equals(other: Any?): Boolean { + if (this === other) return true + if (javaClass != other?.javaClass) return false + + other as TextController + + return textValue == other.textValue + } + + override fun hashCode(): Int { + return textValue.hashCode() + } }