Program: 84948
Project: 84948
Buggy source:
/** 
 * customize the content of view
 */
private void customizeViewContent(){
  String tmp;
  if (mWhichDialog == DIALOG_RECEIVE_ONGOING || mWhichDialog == DIALOG_RECEIVE_COMPLETE_SUCCESS) {
    mLine1View=(TextView)mView.findViewById(R.id.line1_view);
    tmp=getString(R.string.download_line1,mTransInfo.mDeviceName);
    mLine1View.setText(tmp);
    mLine2View=(TextView)mView.findViewById(R.id.line2_view);
    tmp=getString(R.string.download_line2,mTransInfo.mFileName);
    mLine2View.setText(tmp);
    mLine3View=(TextView)mView.findViewById(R.id.line3_view);
    tmp=getString(R.string.download_line3,Formatter.formatFileSize(this,mTransInfo.mTotalBytes));
    mLine3View.setText(tmp);
    mLine5View=(TextView)mView.findViewById(R.id.line5_view);
    if (mWhichDialog == DIALOG_RECEIVE_ONGOING) {
      tmp=getString(R.string.download_line5);
    }
 else     if (mWhichDialog == DIALOG_RECEIVE_COMPLETE_SUCCESS) {
      tmp=getString(R.string.download_succ_line5);
    }
    mLine5View.setText(tmp);
  }
 else   if (mWhichDialog == DIALOG_SEND_ONGOING || mWhichDialog == DIALOG_SEND_COMPLETE_SUCCESS) {
    mLine1View=(TextView)mView.findViewById(R.id.line1_view);
    tmp=getString(R.string.upload_line1,mTransInfo.mDeviceName);
    mLine1View.setText(tmp);
    mLine2View=(TextView)mView.findViewById(R.id.line2_view);
    tmp=getString(R.string.download_line2,mTransInfo.mFileName);
    mLine2View.setText(tmp);
    mLine3View=(TextView)mView.findViewById(R.id.line3_view);
    tmp=getString(R.string.upload_line3,mTransInfo.mFileType,Formatter.formatFileSize(this,mTransInfo.mTotalBytes));
    mLine3View.setText(tmp);
    mLine5View=(TextView)mView.findViewById(R.id.line5_view);
    if (mWhichDialog == DIALOG_SEND_ONGOING) {
      tmp=getString(R.string.upload_line5);
    }
 else     if (mWhichDialog == DIALOG_SEND_COMPLETE_SUCCESS) {
      tmp=getString(R.string.upload_succ_line5);
    }
    mLine5View.setText(tmp);
  }
 else   if (mWhichDialog == DIALOG_RECEIVE_COMPLETE_FAIL) {
    if (mTransInfo.mStatus == BluetoothShare.STATUS_ERROR_SDCARD_FULL) {
      mLine1View=(TextView)mView.findViewById(R.id.line1_view);
      tmp=getString(R.string.bt_sm_2_1,mTransInfo.mDeviceName);
      mLine1View.setText(tmp);
      mLine2View=(TextView)mView.findViewById(R.id.line2_view);
      tmp=getString(R.string.download_fail_line2,mTransInfo.mFileName);
      mLine2View.setText(tmp);
      mLine3View=(TextView)mView.findViewById(R.id.line3_view);
      tmp=getString(R.string.bt_sm_2_2,Formatter.formatFileSize(this,mTransInfo.mTotalBytes));
      mLine3View.setText(tmp);
    }
 else {
      mLine1View=(TextView)mView.findViewById(R.id.line1_view);
      tmp=getString(R.string.download_fail_line1);
      mLine1View.setText(tmp);
      mLine2View=(TextView)mView.findViewById(R.id.line2_view);
      tmp=getString(R.string.download_fail_line2,mTransInfo.mFileName);
      mLine2View.setText(tmp);
      mLine3View=(TextView)mView.findViewById(R.id.line3_view);
      tmp=getString(R.string.download_fail_line3,BluetoothOppUtility.getStatusDescription(this,mTransInfo.mStatus));
      mLine3View.setText(tmp);
    }
    mLine5View=(TextView)mView.findViewById(R.id.line5_view);
    mLine5View.setVisibility(View.GONE);
  }
 else   if (mWhichDialog == DIALOG_SEND_COMPLETE_FAIL) {
    mLine1View=(TextView)mView.findViewById(R.id.line1_view);
    tmp=getString(R.string.upload_fail_line1,mTransInfo.mDeviceName);
    mLine1View.setText(tmp);
    mLine2View=(TextView)mView.findViewById(R.id.line2_view);
    tmp=getString(R.string.upload_fail_line1_2,mTransInfo.mFileName);
    mLine2View.setText(tmp);
    mLine3View=(TextView)mView.findViewById(R.id.line3_view);
    tmp=getString(R.string.download_fail_line3,BluetoothOppUtility.getStatusDescription(this,mTransInfo.mStatus));
    mLine3View.setText(tmp);
    mLine5View=(TextView)mView.findViewById(R.id.line5_view);
    mLine5View.setVisibility(View.GONE);
  }
  if (BluetoothShare.isStatusError(mTransInfo.mStatus)) {
    mProgressTransfer.setVisibility(View.GONE);
    mPercentView.setVisibility(View.GONE);
  }
}

Fixed version (ground truth):
/** 
 * customize the content of view
 */
private void customizeViewContent(){
  String tmp;
  if (mWhichDialog == DIALOG_RECEIVE_ONGOING || mWhichDialog == DIALOG_RECEIVE_COMPLETE_SUCCESS) {
    mLine1View=(TextView)mView.findViewById(R.id.line1_view);
    tmp=getString(R.string.download_line1,mTransInfo.mDeviceName);
    mLine1View.setText(tmp);
    mLine2View=(TextView)mView.findViewById(R.id.line2_view);
    tmp=getString(R.string.download_line2,mTransInfo.mFileName);
    mLine2View.setText(tmp);
    mLine3View=(TextView)mView.findViewById(R.id.line3_view);
    tmp=getString(R.string.download_line3,Formatter.formatFileSize(this,mTransInfo.mTotalBytes));
    mLine3View.setText(tmp);
    mLine5View=(TextView)mView.findViewById(R.id.line5_view);
    if (mWhichDialog == DIALOG_RECEIVE_ONGOING) {
      tmp=getString(R.string.download_line5);
    }
 else     if (mWhichDialog == DIALOG_RECEIVE_COMPLETE_SUCCESS) {
      tmp=getString(R.string.download_succ_line5);
    }
    mLine5View.setText(tmp);
  }
 else   if (mWhichDialog == DIALOG_SEND_ONGOING || mWhichDialog == DIALOG_SEND_COMPLETE_SUCCESS) {
    mLine1View=(TextView)mView.findViewById(R.id.line1_view);
    tmp=getString(R.string.upload_line1,mTransInfo.mDeviceName);
    mLine1View.setText(tmp);
    mLine2View=(TextView)mView.findViewById(R.id.line2_view);
    tmp=getString(R.string.download_line2,mTransInfo.mFileName);
    mLine2View.setText(tmp);
    mLine3View=(TextView)mView.findViewById(R.id.line3_view);
    tmp=getString(R.string.upload_line3,mTransInfo.mFileType,Formatter.formatFileSize(this,mTransInfo.mTotalBytes));
    mLine3View.setText(tmp);
    mLine5View=(TextView)mView.findViewById(R.id.line5_view);
    if (mWhichDialog == DIALOG_SEND_ONGOING) {
      tmp=getString(R.string.upload_line5);
    }
 else     if (mWhichDialog == DIALOG_SEND_COMPLETE_SUCCESS) {
      tmp=getString(R.string.upload_succ_line5);
    }
    mLine5View.setText(tmp);
  }
 else   if (mWhichDialog == DIALOG_RECEIVE_COMPLETE_FAIL) {
    if (mTransInfo.mStatus == BluetoothShare.STATUS_ERROR_SDCARD_FULL) {
      mLine1View=(TextView)mView.findViewById(R.id.line1_view);
      tmp=getString(R.string.bt_sm_2_1,mTransInfo.mDeviceName);
      mLine1View.setText(tmp);
      mLine2View=(TextView)mView.findViewById(R.id.line2_view);
      tmp=getString(R.string.download_fail_line2,mTransInfo.mFileName);
      mLine2View.setText(tmp);
      mLine3View=(TextView)mView.findViewById(R.id.line3_view);
      tmp=getString(R.string.bt_sm_2_2,Formatter.formatFileSize(this,mTransInfo.mTotalBytes));
      mLine3View.setText(tmp);
    }
 else {
      mLine1View=(TextView)mView.findViewById(R.id.line1_view);
      tmp=getString(R.string.download_fail_line1);
      mLine1View.setText(tmp);
      mLine2View=(TextView)mView.findViewById(R.id.line2_view);
      tmp=getString(R.string.download_fail_line2,mTransInfo.mFileName);
      mLine2View.setText(tmp);
      mLine3View=(TextView)mView.findViewById(R.id.line3_view);
      tmp=getString(R.string.download_fail_line3,BluetoothOppUtility.getStatusDescription(this,mTransInfo.mStatus,mTransInfo.mDeviceName));
      mLine3View.setText(tmp);
    }
    mLine5View=(TextView)mView.findViewById(R.id.line5_view);
    mLine5View.setVisibility(View.GONE);
  }
 else   if (mWhichDialog == DIALOG_SEND_COMPLETE_FAIL) {
    mLine1View=(TextView)mView.findViewById(R.id.line1_view);
    tmp=getString(R.string.upload_fail_line1,mTransInfo.mDeviceName);
    mLine1View.setText(tmp);
    mLine2View=(TextView)mView.findViewById(R.id.line2_view);
    tmp=getString(R.string.upload_fail_line1_2,mTransInfo.mFileName);
    mLine2View.setText(tmp);
    mLine3View=(TextView)mView.findViewById(R.id.line3_view);
    tmp=getString(R.string.download_fail_line3,BluetoothOppUtility.getStatusDescription(this,mTransInfo.mStatus,mTransInfo.mDeviceName));
    mLine3View.setText(tmp);
    mLine5View=(TextView)mView.findViewById(R.id.line5_view);
    mLine5View.setVisibility(View.GONE);
  }
  if (BluetoothShare.isStatusError(mTransInfo.mStatus)) {
    mProgressTransfer.setVisibility(View.GONE);
    mPercentView.setVisibility(View.GONE);
  }
}