Commit 532c95aa authored by Libin Lu's avatar Libin Lu Committed by GitHub

Merge pull request #941 from mjmasn/fix_notification_grouping

Fix notification grouping
parents 56f8bbc0 3fdb4bc4
......@@ -89,10 +89,13 @@ public class SendNotificationTask extends AsyncTask<Void, Void, Void> {
.setVibrate(new long[]{0, DEFAULT_VIBRATION})
.setExtras(bundle.getBundle("data"));
if(android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){
String group = bundle.getString("group");
if (group != null) group = URLDecoder.decode( group, "UTF-8" );
notification.setGroup(group);
if (bundle.containsKey("groupSummary") && bundle.getBoolean("groupSummary")) {
notification.setGroupSummary(true);
}
}
if (bundle.containsKey("ongoing") && 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