mirror of
https://github.com/SimpleMobileTools/Simple-Calculator.git
synced 2025-04-09 07:51:17 +02:00
adding a trick to get some crash related info
This commit is contained in:
parent
6075d917d6
commit
2b8fe04820
@ -96,7 +96,18 @@ class CalculatorImpl(calculator: Calculator, private val context: Context) {
|
|||||||
if (lastOperation != "" && operation == PERCENT) {
|
if (lastOperation != "" && operation == PERCENT) {
|
||||||
handlePercent()
|
handlePercent()
|
||||||
} else {
|
} else {
|
||||||
secondValue = getSecondValue()
|
// split to multiple lines just to see when does the crash happen
|
||||||
|
secondValue = when (operation) {
|
||||||
|
PLUS -> getSecondValue()
|
||||||
|
MINUS -> getSecondValue()
|
||||||
|
MULTIPLY -> getSecondValue()
|
||||||
|
DIVIDE -> getSecondValue()
|
||||||
|
ROOT -> getSecondValue()
|
||||||
|
POWER -> getSecondValue()
|
||||||
|
PERCENT -> getSecondValue()
|
||||||
|
else -> getSecondValue()
|
||||||
|
}
|
||||||
|
|
||||||
calculateResult()
|
calculateResult()
|
||||||
|
|
||||||
if (!operations.contains(inputDisplayedFormula.last().toString())) {
|
if (!operations.contains(inputDisplayedFormula.last().toString())) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user