From 6713c7e13b0799d7918d050e9365895291de73a5 Mon Sep 17 00:00:00 2001 From: Hamza Sharawi Date: Sun, 6 Nov 2016 11:40:42 +0200 Subject: [PATCH] Change getBinder to get bundle getBinder is introduced in API 18, any app with a minSdk below 18 will crash because getBinder is not there, so i changed it to getBundle which gives the same result according to the docs. --- .../java/io/fullstack/firestack/FirestackAnalytics.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/src/main/java/io/fullstack/firestack/FirestackAnalytics.java b/android/src/main/java/io/fullstack/firestack/FirestackAnalytics.java index d1be2e6..ec67022 100644 --- a/android/src/main/java/io/fullstack/firestack/FirestackAnalytics.java +++ b/android/src/main/java/io/fullstack/firestack/FirestackAnalytics.java @@ -213,14 +213,14 @@ private Bundle makeEventBundle(final String name, final Map map) String val = (String) map.get("flight_number"); bundle.putString(FirebaseAnalytics.Param.FLIGHT_NUMBER, val); } - + Iterator> entries = map.entrySet().iterator(); while (entries.hasNext()) { Map.Entry entry = entries.next(); - if (bundle.getBinder(entry.getKey()) == null) { + if (bundle.getBundle(entry.getKey()) == null) { bundle.putString(entry.getKey(), entry.getValue().toString()); } } return bundle; } -} \ No newline at end of file +}