Commit 091ec166 authored by Pewh Gosh's avatar Pewh Gosh Committed by GitHub

Fix `ongoing` boolean logic

parent 478ebbd4
...@@ -85,7 +85,7 @@ public class FIRLocalMessagingHelper { ...@@ -85,7 +85,7 @@ public class FIRLocalMessagingHelper {
.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION)) .setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION))
.setExtras(bundle.getBundle("data")); .setExtras(bundle.getBundle("data"));
if (bundle.containsKey("ongoing") || bundle.getBoolean("ongoing")) { if (bundle.containsKey("ongoing") && bundle.getBoolean("ongoing")) {
notification.setOngoing(bundle.getBoolean("ongoing")); notification.setOngoing(bundle.getBoolean("ongoing"));
} }
......
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