Skip to content

Commit

Permalink
Adding boolean support for app event reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
audaciouscode committed Apr 3, 2017
1 parent 35aead2 commit faab475
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -409,6 +409,9 @@ public boolean logEvent(String eventName, Map<String, ? extends Object> eventDet
} else if (value instanceof String) {
detailsBundle.putString(key, value.toString());
detailsJson.put(key, value.toString());
} else if (value instanceof Boolean) {
detailsBundle.putBoolean(key, ((Boolean) value).booleanValue());
detailsJson.put(key, ((Boolean) value).booleanValue());
} else {
detailsBundle.putString(key, "Unknown Class: " + value.getClass().getCanonicalName());
detailsJson.put(key, "Unknown Class: " + value.getClass().getCanonicalName());
Expand Down

0 comments on commit faab475

Please sign in to comment.