Program: 165217
Project: 165217
Buggy source:
private Notification createUpdateSummaryNotification(ArrayList<AppUpdateStatusManager.AppUpdateStatus> updates){
  String title=context.getString(R.string.notification_summary_updates,updates.size());
  StringBuilder text=new StringBuilder();
  NotificationCompat.InboxStyle inboxStyle=new NotificationCompat.InboxStyle();
  inboxStyle.setBigContentTitle(title);
  for (int i=0; i < MAX_UPDATES_TO_SHOW && i < updates.size(); i++) {
    AppUpdateStatusManager.AppUpdateStatus entry=updates.get(i);
    App app=entry.app;
    AppUpdateStatusManager.Status status=entry.status;
    String content=getMultiItemContentString(app,status);
    SpannableStringBuilder sb=new SpannableStringBuilder(app.name);
    sb.setSpan(new StyleSpan(Typeface.BOLD),0,sb.length(),Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
    sb.append("String_Node_Str");
    sb.append(content);
    inboxStyle.addLine(sb);
    if (text.length() > 0)     text.append("String_Node_Str");
    text.append(app.name);
  }
  if (updates.size() > MAX_UPDATES_TO_SHOW) {
    int diff=updates.size() - MAX_UPDATES_TO_SHOW;
    inboxStyle.setSummaryText(context.getString(R.string.notification_summary_more,diff));
  }
  Intent intentObject=new Intent(context,FDroid.class);
  PendingIntent piAction=PendingIntent.getActivity(context,0,intentObject,0);
  NotificationCompat.Builder builder=new NotificationCompat.Builder(context).setAutoCancel(!useStackedNotifications()).setSmallIcon(R.drawable.ic_launcher).setColor(ContextCompat.getColor(context,R.color.fdroid_blue)).setContentTitle(title).setContentText(text).setContentIntent(piAction).setLocalOnly(true).setVisibility(NotificationCompat.VISIBILITY_SECRET).setStyle(inboxStyle);
  if (useStackedNotifications()) {
    builder.setGroup(GROUP_UPDATES).setGroupSummary(true);
  }
  Intent intentDeleted=new Intent(BROADCAST_NOTIFICATIONS_ALL_UPDATES_CLEARED);
  PendingIntent piDeleted=PendingIntent.getBroadcast(context,0,intentDeleted,0);
  builder.setDeleteIntent(piDeleted);
  return builder.build();
}

Fixed version (ground truth):
private Notification createUpdateSummaryNotification(ArrayList<AppUpdateStatusManager.AppUpdateStatus> updates){
  String title=context.getString(R.string.notification_summary_updates,updates.size());
  StringBuilder text=new StringBuilder();
  NotificationCompat.InboxStyle inboxStyle=new NotificationCompat.InboxStyle();
  inboxStyle.setBigContentTitle(title);
  for (int i=0; i < MAX_UPDATES_TO_SHOW && i < updates.size(); i++) {
    AppUpdateStatusManager.AppUpdateStatus entry=updates.get(i);
    App app=entry.app;
    AppUpdateStatusManager.Status status=entry.status;
    String content=getMultiItemContentString(app,status);
    SpannableStringBuilder sb=new SpannableStringBuilder(app.name);
    sb.setSpan(new StyleSpan(Typeface.BOLD),0,sb.length(),Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
    sb.append("String_Node_Str");
    sb.append(content);
    inboxStyle.addLine(sb);
    if (text.length() > 0) {
      text.append("String_Node_Str");
    }
    text.append(app.name);
  }
  if (updates.size() > MAX_UPDATES_TO_SHOW) {
    int diff=updates.size() - MAX_UPDATES_TO_SHOW;
    inboxStyle.setSummaryText(context.getString(R.string.notification_summary_more,diff));
  }
  Intent intentObject=new Intent(context,FDroid.class);
  PendingIntent piAction=PendingIntent.getActivity(context,0,intentObject,0);
  NotificationCompat.Builder builder=new NotificationCompat.Builder(context).setAutoCancel(!useStackedNotifications()).setSmallIcon(R.drawable.ic_launcher).setColor(ContextCompat.getColor(context,R.color.fdroid_blue)).setContentTitle(title).setContentText(text).setContentIntent(piAction).setLocalOnly(true).setVisibility(NotificationCompat.VISIBILITY_SECRET).setStyle(inboxStyle);
  if (useStackedNotifications()) {
    builder.setGroup(GROUP_UPDATES).setGroupSummary(true);
  }
  Intent intentDeleted=new Intent(BROADCAST_NOTIFICATIONS_ALL_UPDATES_CLEARED);
  PendingIntent piDeleted=PendingIntent.getBroadcast(context,0,intentDeleted,0);
  builder.setDeleteIntent(piDeleted);
  return builder.build();
}