Program: 86243
Project: 86243
Buggy source:
@Override public void onScrollChanged(int deltaX,int deltaY){
  if (getItem() == null) {
    return;
  }
  int scrollY=scrollView.getScrollY();
  if (getItem().getCoverBitmap() != null) {
    ViewHelper.setTranslationY(ivCover,scrollY * 0.5f);
    ViewHelper.setTranslationY(gradientBottom,scrollY * 0.5f);
    ViewHelper.setTranslationY(gradientTop,scrollY * 0.5f);
  }
  ViewHelper.setTranslationY(toolbar,scrollY);
  if (getItem().getCoverBitmap() != null) {
    float minHeight=toolbar.getHeight();
    float progress=Math.min(((float)scrollY) / (ivCover.getHeight() - minHeight),1);
    float scale=1 - progress + 20f / 36f * progress;
    ViewHelper.setPivotX(tvTitel,0);
    ViewHelper.setPivotY(tvTitel,tvTitel.getHeight());
    ViewHelper.setScaleX(tvTitel,scale);
    ViewHelper.setScaleY(tvTitel,scale);
    if (back_button_visible) {
      ViewHelper.setTranslationX(tvTitel,progress * TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,56f,getResources().getDisplayMetrics()));
    }
    ViewHelper.setAlpha(tint,progress);
    if (progress == 1) {
      ViewHelper.setTranslationY(tvTitel,scrollY - ivCover.getHeight() + minHeight);
      if (!ivCover.getBackground().equals(toolbar.getBackground())) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
          toolbar.setBackground(ivCover.getBackground());
        }
 else {
          toolbar.setBackgroundDrawable(ivCover.getBackground());
        }
        ViewCompat.setElevation(toolbar,TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,4f,getResources().getDisplayMetrics()));
        ViewCompat.setElevation(tvTitel,TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,4f,getResources().getDisplayMetrics()));
      }
    }
 else {
      ViewHelper.setTranslationY(tvTitel,0);
      if (ivCover.getBackground().equals(toolbar.getBackground())) {
        toolbar.setBackgroundResource(R.color.transparent);
        ViewCompat.setElevation(toolbar,0);
        ViewCompat.setElevation(tvTitel,0);
      }
    }
  }
  if (cardAnimations == null) {
    cardAnimations=new Boolean[llCopies.getChildCount()];
    Arrays.fill(cardAnimations,false);
  }
  for (int i=0; i < llCopies.getChildCount(); i++) {
    if (!cardAnimations[i]) {
      View card=llCopies.getChildAt(i);
      Rect scrollBounds=new Rect();
      scrollView.getHitRect(scrollBounds);
      if (card.getLocalVisibleRect(scrollBounds)) {
        cardAnimations[i]=true;
        card.startAnimation(AnimationUtils.loadAnimation(getActivity(),R.anim.card_appear));
      }
    }
  }
}

Fixed version (ground truth):
@Override public void onScrollChanged(int deltaX,int deltaY){
  if (getItem() == null) {
    return;
  }
  int scrollY=scrollView.getScrollY();
  boolean hasCover=getItem().getCoverBitmap() != null || getArguments().containsKey(ARG_ITEM_COVER_BITMAP);
  if (hasCover) {
    ViewHelper.setTranslationY(ivCover,scrollY * 0.5f);
    ViewHelper.setTranslationY(gradientBottom,scrollY * 0.5f);
    ViewHelper.setTranslationY(gradientTop,scrollY * 0.5f);
  }
  ViewHelper.setTranslationY(toolbar,scrollY);
  if (hasCover) {
    float minHeight=toolbar.getHeight();
    float progress=Math.min(((float)scrollY) / (ivCover.getHeight() - minHeight),1);
    float scale=1 - progress + 20f / 36f * progress;
    ViewHelper.setPivotX(tvTitel,0);
    ViewHelper.setPivotY(tvTitel,tvTitel.getHeight());
    ViewHelper.setScaleX(tvTitel,scale);
    ViewHelper.setScaleY(tvTitel,scale);
    if (back_button_visible) {
      ViewHelper.setTranslationX(tvTitel,progress * TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,56f,getResources().getDisplayMetrics()));
    }
    ViewHelper.setAlpha(tint,progress);
    if (progress == 1) {
      ViewHelper.setTranslationY(tvTitel,scrollY - ivCover.getHeight() + minHeight);
      if (!ivCover.getBackground().equals(toolbar.getBackground())) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
          toolbar.setBackground(ivCover.getBackground());
        }
 else {
          toolbar.setBackgroundDrawable(ivCover.getBackground());
        }
        ViewCompat.setElevation(toolbar,TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,4f,getResources().getDisplayMetrics()));
        ViewCompat.setElevation(tvTitel,TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,4f,getResources().getDisplayMetrics()));
      }
    }
 else {
      ViewHelper.setTranslationY(tvTitel,0);
      if (ivCover.getBackground().equals(toolbar.getBackground())) {
        toolbar.setBackgroundResource(R.color.transparent);
        ViewCompat.setElevation(toolbar,0);
        ViewCompat.setElevation(tvTitel,0);
      }
    }
  }
  if (cardAnimations == null) {
    cardAnimations=new Boolean[llCopies.getChildCount()];
    Arrays.fill(cardAnimations,false);
  }
  for (int i=0; i < llCopies.getChildCount(); i++) {
    if (!cardAnimations[i]) {
      View card=llCopies.getChildAt(i);
      Rect scrollBounds=new Rect();
      scrollView.getHitRect(scrollBounds);
      if (card.getLocalVisibleRect(scrollBounds)) {
        cardAnimations[i]=true;
        card.startAnimation(AnimationUtils.loadAnimation(getActivity(),R.anim.card_appear));
      }
    }
  }
}