replace the shown value at clicking on History, do not append it
This commit is contained in:
parent
663bc63048
commit
f501384d25
|
@ -368,7 +368,7 @@ class CalculatorImpl(calculator: Calculator, private val context: Context) {
|
|||
|
||||
fun addNumberToFormula(number: String) {
|
||||
lastKey = DIGIT
|
||||
inputDisplayedFormula += number
|
||||
inputDisplayedFormula = number
|
||||
addThousandsDelimiter()
|
||||
showNewResult(inputDisplayedFormula)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue