mirror of
				https://github.com/SimpleMobileTools/Simple-Calculator.git
				synced 2025-06-05 21:49:13 +02:00 
			
		
		
		
	adding a trick to get some crash related info
This commit is contained in:
		| @@ -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())) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user