Commit 4d6749a5 authored by Libin Lu's avatar Libin Lu Committed by GitHub

fix crash

parent 58ed2d29
......@@ -58,7 +58,10 @@ public class FIRLocalMessagingHelper {
return;
}
Long fireDate = Math.round(bundle.getDouble("fire_date", bundle.getLong("fire_date")));
long fireDate = Math.round(bundle.getDouble("fire_date"));
if(fireDate == 0){
fireDate = Math.round(bundle.getLong("fire_date"));
}
if (fireDate == 0) {
Log.e(TAG, "failed to schedule notification because fire date is missing");
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