mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 08:45:27 +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(),
|
||||
result = output
|
||||
)
|
||||
textFieldController.clearInput()
|
||||
textFieldController.addToInput(output)
|
||||
}
|
||||
|
||||
_output.update { "" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user