mirror of
https://github.com/SimpleMobileTools/Simple-Calculator.git
synced 2025-02-17 03:50:39 +01:00
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") {
|
if (operation == ROOT && inputDisplayedFormula == "0") {
|
||||||
inputDisplayedFormula = "√"
|
if (lastKey != DIGIT) {
|
||||||
|
inputDisplayedFormula = "1√"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val lastChar = inputDisplayedFormula.last().toString()
|
val lastChar = inputDisplayedFormula.last().toString()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user