Skip to content

Commit

Permalink
Merge pull request #941 from mjmasn/fix_notification_grouping
Browse files Browse the repository at this point in the history
Fix notification grouping
  • Loading branch information
Libin Lu authored May 17, 2018
2 parents 56f8bbc + 3fdb4bc commit 532c95a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,13 @@ protected Void doInBackground(Void... params) {
.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")) {
Expand Down

0 comments on commit 532c95a

Please sign in to comment.