mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 16:55:26 +02:00
Swap input with output when evaluating expression
This commit is contained in:
parent
65e6f7545e
commit
6fb4c712ff
@ -111,6 +111,8 @@ internal class CalculatorViewModel @Inject constructor(
|
|||||||
expression = textFieldController.inputTextWithoutFormatting(),
|
expression = textFieldController.inputTextWithoutFormatting(),
|
||||||
result = output
|
result = output
|
||||||
)
|
)
|
||||||
|
textFieldController.clearInput()
|
||||||
|
textFieldController.addToInput(output)
|
||||||
}
|
}
|
||||||
|
|
||||||
_output.update { "" }
|
_output.update { "" }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user