Commit 3f6009b6 authored by Gleb Stiblo's avatar Gleb Stiblo Committed by Libin Lu

Fix of "Key fire_date expected Long but value was a java.lang.Double" exception (#359)

parent 5fb47999
...@@ -221,7 +221,7 @@ public class FIRLocalMessagingHelper { ...@@ -221,7 +221,7 @@ public class FIRLocalMessagingHelper {
return; return;
} }
Long fireDate = bundle.getLong("fire_date", Math.round(bundle.getDouble("fire_date"))); Long fireDate = Math.round(bundle.getDouble("fire_date"));
if (fireDate == 0) { if (fireDate == 0) {
Log.e(TAG, "failed to schedule notification because fire date is missing"); Log.e(TAG, "failed to schedule notification because fire date is missing");
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment