We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9836682 + 731b6f3 commit cded50eCopy full SHA for cded50e
OneSignalSDK/onesignal/src/main/java/com/onesignal/JSONUtils.java
@@ -62,7 +62,7 @@ else if (includeFields != null && includeFields.contains(key))
62
Object curValue = cur.get(key);
63
if (!value.equals(curValue)) {
64
// Work around for JSON serializer turning doubles/floats into ints since it drops ending 0's
65
- if (curValue instanceof Integer && !"".equals(value)) {
+ if (curValue instanceof Number && value instanceof Number) {
66
if ( ((Number)curValue).doubleValue() != ((Number)value).doubleValue())
67
output.put(key, value);
68
}
0 commit comments