mirror of
https://github.com/SimpleMobileTools/Simple-Calculator.git
synced 2025-03-27 00:30:25 +01:00
using same order of constants writed in json object
This commit is contained in:
parent
9734007b59
commit
da943770df
@ -449,10 +449,10 @@ class CalculatorImpl(
|
||||
val jsonObject = JSONTokener(json).nextValue() as JSONObject
|
||||
currentResult = jsonObject.getString(RES)
|
||||
previousCalculation = jsonObject.getString(PREVIOUS_CALCULATION)
|
||||
lastKey = jsonObject.getString(LAST_KEY)
|
||||
lastOperation = jsonObject.getString(LAST_OPERATION)
|
||||
baseValue = jsonObject.getDouble(BASE_VALUE)
|
||||
secondValue = jsonObject.getDouble(SECOND_VALUE)
|
||||
inputDisplayedFormula = jsonObject.getString(INPUT_DISPLAYED_FORMULA)
|
||||
lastKey = jsonObject.getString(LAST_KEY)
|
||||
lastOperation = jsonObject.getString(LAST_OPERATION)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user