Leanplum / Leanplum-Android-SDK

Leanplum's integrated solution delivers meaningful engagement across messaging and the in-app experience.
https://www.leanplum.com
Apache License 2.0
46 stars 40 forks source link

Set correct number type in Var.value #419

Closed hborisoff closed 4 years ago

hborisoff commented 4 years ago
What Where/Who
JIRA Issue LP-11498
People Involved @hborisoff

Background

When server is sending string representation of a number variable it was parsed from Var.cacheComputedValues() and set to numberValue but value member was never initialised and remains the string representation. This PR is fixing that behaviour and when the defaultValue is representing Number object we try to set the correct Number instance in the value member.

There is another #379 fixing similar issue.