Swap input with output when evaluating expression

This commit is contained in:
Sad Ellie 2023-02-26 16:57:12 +04:00
parent 65e6f7545e
commit 6fb4c712ff

View File

@ -111,6 +111,8 @@ internal class CalculatorViewModel @Inject constructor(
expression = textFieldController.inputTextWithoutFormatting(),
result = output
)
textFieldController.clearInput()
textFieldController.addToInput(output)
}
_output.update { "" }