add a hackfix for pressing Root as first operation
This commit is contained in:
parent
4c132d1acf
commit
210020895f
|
@ -73,7 +73,9 @@ class CalculatorImpl(calculator: Calculator, private val context: Context) {
|
|||
}
|
||||
|
||||
if (operation == ROOT && inputDisplayedFormula == "0") {
|
||||
inputDisplayedFormula = "√"
|
||||
if (lastKey != DIGIT) {
|
||||
inputDisplayedFormula = "1√"
|
||||
}
|
||||
}
|
||||
|
||||
val lastChar = inputDisplayedFormula.last().toString()
|
||||
|
|
Loading…
Reference in New Issue