Merge pull request #267 from rsb-23/Issue-#261-fix
Fixed issue #261 of 0√
This commit is contained in:
commit
7e33f9a7e5
|
@ -324,8 +324,9 @@ class CalculatorImpl(
|
|||
val lastDeletedValue = inputDisplayedFormula.lastOrNull().toString()
|
||||
|
||||
var newValue = inputDisplayedFormula.dropLast(1)
|
||||
if (newValue == "") {
|
||||
if (newValue == "" || newValue == "0") {
|
||||
newValue = "0"
|
||||
lastKey = CLEAR
|
||||
} else {
|
||||
if (operations.contains(lastDeletedValue) || lastKey == EQUALS) {
|
||||
lastOperation = ""
|
||||
|
|
Loading…
Reference in New Issue