Program: 184859
Project: 184859
Buggy source:
/** 
 * Updates the state of the in-call UI based on the current state of the Phone.
 */
private void updateScreen(){
  if (VDBG)   log("String_Node_Str");
  if (!mIsForegroundActivity) {
    if (VDBG)     log("String_Node_Str");
    return;
  }
  if (mInCallMenu != null) {
    if (VDBG)     log("String_Node_Str");
    boolean okToShowMenu=mInCallMenu.updateItems(mPhone);
    if (!okToShowMenu) {
      if (VDBG)       log("String_Node_Str");
      dismissMenu(true);
    }
  }
  final PhoneApp app=PhoneApp.getInstance();
  if (mInCallScreenMode == InCallScreenMode.OTA_NORMAL) {
    if (VDBG)     log("String_Node_Str");
    if (otaUtils != null) {
      if (VDBG)       log("String_Node_Str");
      otaUtils.otaShowProperScreen();
    }
    return;
  }
 else   if (mInCallScreenMode == InCallScreenMode.OTA_ENDED) {
    if (VDBG)     log("String_Node_Str");
    if (app.cdmaOtaScreenState.otaScreenState == CdmaOtaScreenState.OtaScreenState.OTA_STATUS_ACTIVATION) {
      if (VDBG)       log("String_Node_Str");
      if (otaUtils != null) {
        if (VDBG)         log("String_Node_Str" + "String_Node_Str");
        otaUtils.otaShowActivateScreen();
      }
    }
 else {
      if (VDBG)       log("String_Node_Str");
      if (otaUtils != null) {
        if (VDBG)         log("String_Node_Str");
        otaUtils.otaShowSuccessFailure();
      }
    }
    return;
  }
 else   if (mInCallScreenMode == InCallScreenMode.MANAGE_CONFERENCE) {
    if (VDBG)     log("String_Node_Str");
    updateManageConferencePanelIfNecessary();
    return;
  }
 else   if (mInCallScreenMode == InCallScreenMode.CALL_ENDED) {
    if (VDBG)     log("String_Node_Str");
    updateInCallPanelBackground();
    return;
  }
  if (VDBG)   log("String_Node_Str");
  mCallCard.updateState(mPhone);
  updateDialpadVisibility();
  updateInCallTouchUi();
  updateMenuButtonHint();
  updateInCallPanelBackground();
  if (!mRingingCall.isIdle()) {
    dismissAllDialogs();
  }
 else {
    List<Connection> fgConnections=mForegroundCall.getConnections();
    for (    Connection cn : fgConnections) {
      if ((cn != null) && (cn.getPostDialState() == Connection.PostDialState.WAIT)) {
        String postDialStr=cn.getRemainingPostDialString();
        showWaitPromptDialog(cn,postDialStr);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Updates the state of the in-call UI based on the current state of the Phone.
 */
private void updateScreen(){
  if (VDBG)   log("String_Node_Str");
  if (!mIsForegroundActivity) {
    if (VDBG)     log("String_Node_Str");
    return;
  }
  if (mInCallMenu != null) {
    if (VDBG)     log("String_Node_Str");
    boolean okToShowMenu=mInCallMenu.updateItems(mPhone);
    if (!okToShowMenu) {
      if (VDBG)       log("String_Node_Str");
      dismissMenu(true);
    }
  }
  final PhoneApp app=PhoneApp.getInstance();
  if (mInCallScreenMode == InCallScreenMode.OTA_NORMAL) {
    if (VDBG)     log("String_Node_Str");
    if (otaUtils != null) {
      if (VDBG)       log("String_Node_Str");
      otaUtils.otaShowProperScreen();
    }
    return;
  }
 else   if (mInCallScreenMode == InCallScreenMode.OTA_ENDED) {
    if (VDBG)     log("String_Node_Str");
    if (app.cdmaOtaScreenState.otaScreenState == CdmaOtaScreenState.OtaScreenState.OTA_STATUS_ACTIVATION) {
      if (VDBG)       log("String_Node_Str");
      if (otaUtils != null) {
        if (VDBG)         log("String_Node_Str" + "String_Node_Str");
        otaUtils.otaShowActivateScreen();
      }
    }
 else {
      if (VDBG)       log("String_Node_Str");
      if (otaUtils != null) {
        if (VDBG)         log("String_Node_Str");
        otaUtils.otaShowSuccessFailure();
      }
    }
    return;
  }
 else   if (mInCallScreenMode == InCallScreenMode.MANAGE_CONFERENCE) {
    if (VDBG)     log("String_Node_Str");
    updateManageConferencePanelIfNecessary();
    return;
  }
 else   if (mInCallScreenMode == InCallScreenMode.CALL_ENDED) {
    if (VDBG)     log("String_Node_Str");
    updateInCallPanelBackground();
    return;
  }
  if (VDBG)   log("String_Node_Str");
  mCallCard.updateState(mPhone);
  updateDialpadVisibility();
  updateInCallTouchUi();
  updateMenuButtonHint();
  updateInCallPanelBackground();
  if (!mRingingCall.isIdle()) {
    dismissAllDialogs();
  }
 else {
    List<Connection> fgConnections=mForegroundCall.getConnections();
    for (    Connection cn : fgConnections) {
      if ((cn != null) && (cn.getPostDialState() == Connection.PostDialState.WAIT)) {
        String postDialStr=cn.getRemainingPostDialString();
        if (mPhone.getPhoneName().equals("String_Node_Str")) {
          if (PhoneApp.getInstance().cdmaPhoneCallState.getCurrentCallState() != CdmaPhoneCallState.PhoneCallState.CONF_CALL) {
            if (DBG)             log("String_Node_Str");
            showWaitPromptDialogCDMA(cn,postDialStr);
          }
        }
 else {
          showWaitPromptDialog(cn,postDialStr);
        }
      }
    }
  }
}