Program: 184878
Project: 184878
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");
        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");
    return;
  }
  if (VDBG)   log("String_Node_Str");
  mCallCard.updateState(mPhone);
  updateDialpadVisibility();
  updateInCallTouchUi();
  updateMenuButtonHint();
}

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");
        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");
    return;
  }
  if (VDBG)   log("String_Node_Str");
  mCallCard.updateState(mPhone);
  updateDialpadVisibility();
  updateInCallTouchUi();
  updateMenuButtonHint();
  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);
      }
    }
  }
}