mirror of
				https://github.com/SimpleMobileTools/Simple-Calculator.git
				synced 2025-06-05 21:49:13 +02:00 
			
		
		
		
	add a hackfix for pressing Root as first operation
This commit is contained in:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user