Commit b587872f authored by Noam Bonnie's avatar Noam Bonnie

Let the native API determine the default

parent c6689a9c
...@@ -95,7 +95,7 @@ public class SendNotificationTask extends AsyncTask<Void, Void, Void> { ...@@ -95,7 +95,7 @@ public class SendNotificationTask extends AsyncTask<Void, Void, Void> {
notification.setGroup(group); notification.setGroup(group);
String groupAlertBehavior = bundle.getString("groupAlertBehavior", "all"); String groupAlertBehavior = bundle.getString("groupAlertBehavior", "not-set");
switch(groupAlertBehavior) { switch(groupAlertBehavior) {
case "children": case "children":
notification.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_CHILDREN); notification.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_CHILDREN);
...@@ -107,7 +107,7 @@ public class SendNotificationTask extends AsyncTask<Void, Void, Void> { ...@@ -107,7 +107,7 @@ public class SendNotificationTask extends AsyncTask<Void, Void, Void> {
notification.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_ALL); notification.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_ALL);
break; break;
default: default:
notification.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_ALL); break; // Leave default behavior to Android defaults.
} }
if (bundle.containsKey("groupSummary") && bundle.getBoolean("groupSummary")) { if (bundle.containsKey("groupSummary") && bundle.getBoolean("groupSummary")) {
......
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