Program: 10575
Project: 10575
Buggy source:
protected void ensureSupportActionBarAttached(){
  if (IS_HONEYCOMB || mIsActionBarImplAttached) {
    return;
  }
  if (!isChild()) {
    final ListView contentView=(ListView)getWindow().getDecorView().findViewById(android.R.id.list);
    ((ViewGroup)contentView.getParent()).removeView(contentView);
    mEnsureInflating=true;
    if ((mWindowFlags & WINDOW_FLAG_ACTION_BAR) == WINDOW_FLAG_ACTION_BAR) {
      if ((mWindowFlags & WINDOW_FLAG_ACTION_BAR_OVERLAY) == WINDOW_FLAG_ACTION_BAR_OVERLAY) {
        super.setContentView(R.layout.abs__screen_action_bar_overlay);
      }
 else {
        super.setContentView(R.layout.abs__screen_action_bar);
      }
      mActionBar=new ActionBarImpl(this);
      ((ActionBarImpl)mActionBar).init();
      final boolean textEnabled=((mWindowFlags & WINDOW_FLAG_ACTION_BAR_ITEM_TEXT) == WINDOW_FLAG_ACTION_BAR_ITEM_TEXT);
      mSupportMenu.setShowsActionItemText(textEnabled);
      if ((mWindowFlags & WINDOW_FLAG_INDETERMINANTE_PROGRESS) == WINDOW_FLAG_INDETERMINANTE_PROGRESS) {
        ((ActionBarImpl)mActionBar).setProgressBarIndeterminateVisibility(false);
      }
    }
 else {
      if ((mWindowFlags & WINDOW_FLAG_INDETERMINANTE_PROGRESS) == WINDOW_FLAG_INDETERMINANTE_PROGRESS) {
        super.requestWindowFeature((int)Window.FEATURE_INDETERMINATE_PROGRESS);
      }
      super.setContentView(R.layout.abs__screen_simple);
    }
    ((ViewGroup)findViewById(R.id.abs__content)).addView(contentView);
    mEnsureInflating=false;
    super.onContentChanged();
  }
  invalidateOptionsMenu();
  mIsActionBarImplAttached=true;
}

Fixed version (ground truth):
protected void ensureSupportActionBarAttached(){
  if (IS_HONEYCOMB || mIsActionBarImplAttached) {
    return;
  }
  if (!isChild()) {
    final ListView contentView=(ListView)getWindow().getDecorView().findViewById(android.R.id.list);
    ((ViewGroup)contentView.getParent()).removeView(contentView);
    mIsEnsureInflating=true;
    if ((mWindowFlags & WINDOW_FLAG_ACTION_BAR) == WINDOW_FLAG_ACTION_BAR) {
      if ((mWindowFlags & WINDOW_FLAG_ACTION_BAR_OVERLAY) == WINDOW_FLAG_ACTION_BAR_OVERLAY) {
        super.setContentView(R.layout.abs__screen_action_bar_overlay);
      }
 else {
        super.setContentView(R.layout.abs__screen_action_bar);
      }
      mActionBar=new ActionBarImpl(this);
      ((ActionBarImpl)mActionBar).init();
      final boolean textEnabled=((mWindowFlags & WINDOW_FLAG_ACTION_BAR_ITEM_TEXT) == WINDOW_FLAG_ACTION_BAR_ITEM_TEXT);
      mSupportMenu.setShowsActionItemText(textEnabled);
      if ((mWindowFlags & WINDOW_FLAG_INDETERMINANTE_PROGRESS) == WINDOW_FLAG_INDETERMINANTE_PROGRESS) {
        ((ActionBarImpl)mActionBar).setProgressBarIndeterminateVisibility(false);
      }
    }
 else {
      if ((mWindowFlags & WINDOW_FLAG_INDETERMINANTE_PROGRESS) == WINDOW_FLAG_INDETERMINANTE_PROGRESS) {
        super.requestWindowFeature((int)Window.FEATURE_INDETERMINATE_PROGRESS);
      }
      super.setContentView(R.layout.abs__screen_simple);
    }
    ((ViewGroup)findViewById(R.id.abs__content)).addView(contentView);
    mIsEnsureInflating=false;
    super.onContentChanged();
  }
  invalidateOptionsMenu();
  mIsActionBarImplAttached=true;
}