Program: 13489
Project: 13489
Buggy source:
private void showNotificationForBuilder(NotificationCompat.Builder builder,Context context,String wpcomNoteID,int pushId,boolean notifyUser){
  if (builder == null || context == null) {
    return;
  }
  Intent resultIntent=new Intent(context,WPMainActivity.class);
  resultIntent.putExtra(WPMainActivity.ARG_OPENED_FROM_PUSH,true);
  resultIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
  resultIntent.setAction("String_Node_Str");
  resultIntent.addCategory("String_Node_Str");
  resultIntent.putExtra(NotificationsListFragment.NOTE_ID_EXTRA,wpcomNoteID);
  SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(context);
  boolean shouldReceiveNotifications=prefs.getBoolean(context.getString(R.string.wp_pref_notifications_master),true);
  if (shouldReceiveNotifications) {
    if (notifyUser) {
      boolean shouldVibrate=prefs.getBoolean(context.getString(R.string.wp_pref_notification_vibrate),false);
      boolean shouldBlinkLight=prefs.getBoolean(context.getString(R.string.wp_pref_notification_light),true);
      String notificationSound=prefs.getString(context.getString(R.string.wp_pref_custom_notification_sound),context.getString(R.string.notification_settings_item_sights_and_sounds_choose_sound_default));
      if (!TextUtils.isEmpty(notificationSound) && !notificationSound.trim().toLowerCase().startsWith("String_Node_Str")) {
        builder.setSound(Uri.parse(notificationSound));
      }
      if (shouldVibrate) {
        builder.setVibrate(new long[]{500,500,500});
      }
      if (shouldBlinkLight) {
        builder.setLights(0xff0000ff,1000,5000);
      }
    }
 else {
      builder.setVibrate(null);
      builder.setSound(null);
    }
    Intent notificationDeletedIntent=new Intent(context,NotificationDismissBroadcastReceiver.class);
    notificationDeletedIntent.putExtra("String_Node_Str",pushId);
    notificationDeletedIntent.setAction(String.valueOf(pushId));
    PendingIntent pendingDeleteIntent=PendingIntent.getBroadcast(context,pushId,notificationDeletedIntent,0);
    builder.setDeleteIntent(pendingDeleteIntent);
    builder.setCategory(NotificationCompat.CATEGORY_SOCIAL);
    PendingIntent pendingIntent=PendingIntent.getActivity(context,pushId,resultIntent,PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_UPDATE_CURRENT);
    builder.setContentIntent(pendingIntent);
    NotificationManagerCompat notificationManager=NotificationManagerCompat.from(context);
    notificationManager.notify(pushId,builder.build());
  }
}

Fixed version (ground truth):
private void showNotificationForBuilder(NotificationCompat.Builder builder,Context context,String wpcomNoteID,int pushId,boolean notifyUser){
  if (builder == null || context == null) {
    return;
  }
  Intent resultIntent=new Intent(context,WPMainActivity.class);
  resultIntent.putExtra(WPMainActivity.ARG_OPENED_FROM_PUSH,true);
  resultIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
  resultIntent.setAction("String_Node_Str");
  resultIntent.addCategory("String_Node_Str");
  resultIntent.putExtra(NotificationsListFragment.NOTE_ID_EXTRA,wpcomNoteID);
  SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(context);
  boolean shouldReceiveNotifications=prefs.getBoolean(context.getString(R.string.wp_pref_notifications_master),true);
  if (shouldReceiveNotifications) {
    if (notifyUser) {
      boolean shouldVibrate=prefs.getBoolean(context.getString(R.string.wp_pref_notification_vibrate),false);
      boolean shouldBlinkLight=prefs.getBoolean(context.getString(R.string.wp_pref_notification_light),true);
      String notificationSound=prefs.getString(context.getString(R.string.wp_pref_custom_notification_sound),context.getString(R.string.notification_settings_item_sights_and_sounds_choose_sound_default));
      if (!TextUtils.isEmpty(notificationSound) && !notificationSound.trim().toLowerCase(Locale.ROOT).startsWith("String_Node_Str")) {
        builder.setSound(Uri.parse(notificationSound));
      }
      if (shouldVibrate) {
        builder.setVibrate(new long[]{500,500,500});
      }
      if (shouldBlinkLight) {
        builder.setLights(0xff0000ff,1000,5000);
      }
    }
 else {
      builder.setVibrate(null);
      builder.setSound(null);
    }
    Intent notificationDeletedIntent=new Intent(context,NotificationDismissBroadcastReceiver.class);
    notificationDeletedIntent.putExtra("String_Node_Str",pushId);
    notificationDeletedIntent.setAction(String.valueOf(pushId));
    PendingIntent pendingDeleteIntent=PendingIntent.getBroadcast(context,pushId,notificationDeletedIntent,0);
    builder.setDeleteIntent(pendingDeleteIntent);
    builder.setCategory(NotificationCompat.CATEGORY_SOCIAL);
    PendingIntent pendingIntent=PendingIntent.getActivity(context,pushId,resultIntent,PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_UPDATE_CURRENT);
    builder.setContentIntent(pendingIntent);
    NotificationManagerCompat notificationManager=NotificationManagerCompat.from(context);
    notificationManager.notify(pushId,builder.build());
  }
}