Program: 14363
Project: 14363
Buggy source:
public void updateNotificationWithError(String mErrorMessage,boolean isMediaError,boolean isPage,boolean isVideoPressError){
  AppLog.d(T.POSTS,"String_Node_Str" + mErrorMessage);
  Builder notificationBuilder=new NotificationCompat.Builder(getApplicationContext());
  String postOrPage=(String)(isPage ? mContext.getResources().getText(R.string.page_id) : mContext.getResources().getText(R.string.post_id));
  Intent notificationIntent=new Intent(mContext,isPage ? PagesListActivity.class : PostsListActivity.class);
  notificationIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK | IntentCompat.FLAG_ACTIVITY_CLEAR_TASK);
  notificationIntent.setAction(Intent.ACTION_MAIN);
  notificationIntent.addCategory(Intent.CATEGORY_LAUNCHER);
  notificationIntent.putExtra(PostsListActivity.EXTRA_VIEW_PAGES,isPage);
  notificationIntent.putExtra(PostsListActivity.EXTRA_ERROR_MSG,mErrorMessage);
  if (isVideoPressError) {
    notificationIntent.putExtra(PostsListActivity.EXTRA_ERROR_INFO_TITLE,getString(R.string.learn_more));
    notificationIntent.putExtra(PostsListActivity.EXTRA_ERROR_INFO_LINK,Constants.videoPressURL);
  }
  notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  PendingIntent pendingIntent=PendingIntent.getActivity(mContext,0,notificationIntent,PendingIntent.FLAG_UPDATE_CURRENT);
  String errorText=mContext.getResources().getText(R.string.upload_failed).toString();
  if (isMediaError) {
    errorText=mContext.getResources().getText(R.string.media) + "String_Node_Str" + mContext.getResources().getText(R.string.error);
  }
  notificationBuilder.setSmallIcon(android.R.drawable.stat_notify_error);
  notificationBuilder.setContentTitle((isMediaError) ? errorText : mContext.getResources().getText(R.string.upload_failed));
  notificationBuilder.setContentText((isMediaError) ? mErrorMessage : postOrPage + "String_Node_Str" + errorText+ "String_Node_Str"+ mErrorMessage);
  notificationBuilder.setContentIntent(pendingIntent);
  notificationBuilder.setAutoCancel(true);
  if (mNotificationErrorId == 0) {
    mNotificationErrorId=mNotificationId + (new Random()).nextInt();
  }
  mNotificationManager.notify(mNotificationErrorId,notificationBuilder.build());
}

Fixed version (ground truth):
public void updateNotificationWithError(String mErrorMessage,boolean isMediaError,boolean isPage,boolean isVideoPressError){
  AppLog.d(T.POSTS,"String_Node_Str" + mErrorMessage);
  Builder notificationBuilder=new NotificationCompat.Builder(getApplicationContext());
  String postOrPage=(String)(isPage ? mContext.getResources().getText(R.string.page_id) : mContext.getResources().getText(R.string.post_id));
  Intent notificationIntent=new Intent(mContext,isPage ? PagesListActivity.class : PostsListActivity.class);
  notificationIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
  notificationIntent.putExtra(PostsListActivity.EXTRA_VIEW_PAGES,isPage);
  notificationIntent.putExtra(PostsListActivity.EXTRA_ERROR_MSG,mErrorMessage);
  if (isVideoPressError) {
    notificationIntent.putExtra(PostsListActivity.EXTRA_ERROR_INFO_TITLE,getString(R.string.learn_more));
    notificationIntent.putExtra(PostsListActivity.EXTRA_ERROR_INFO_LINK,Constants.videoPressURL);
  }
  notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  PendingIntent pendingIntent=PendingIntent.getActivity(mContext,0,notificationIntent,PendingIntent.FLAG_UPDATE_CURRENT);
  String errorText=mContext.getResources().getText(R.string.upload_failed).toString();
  if (isMediaError) {
    errorText=mContext.getResources().getText(R.string.media) + "String_Node_Str" + mContext.getResources().getText(R.string.error);
  }
  notificationBuilder.setSmallIcon(android.R.drawable.stat_notify_error);
  notificationBuilder.setContentTitle((isMediaError) ? errorText : mContext.getResources().getText(R.string.upload_failed));
  notificationBuilder.setContentText((isMediaError) ? mErrorMessage : postOrPage + "String_Node_Str" + errorText+ "String_Node_Str"+ mErrorMessage);
  notificationBuilder.setContentIntent(pendingIntent);
  notificationBuilder.setAutoCancel(true);
  if (mNotificationErrorId == 0) {
    mNotificationErrorId=mNotificationId + (new Random()).nextInt();
  }
  mNotificationManager.notify(mNotificationErrorId,notificationBuilder.build());
}