Program: 86259
Project: 86259
Buggy source:
@Override public void onScrollChanged(int deltaX,int deltaY){
  int scrollY=scrollView.getScrollY();
  ViewHelper.setTranslationY(ivCover,scrollY * 0.5f);
  ViewHelper.setTranslationY(gradientBottom,scrollY * 0.5f);
  ViewHelper.setTranslationY(gradientTop,scrollY * 0.5f);
  ViewHelper.setTranslationY(toolbar,scrollY);
  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 (getResources().getDrawable(R.color.transparent).equals(toolbar.getBackground())) {
      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);
    }
  }
}

Fixed version (ground truth):
@Override public void onScrollChanged(int deltaX,int deltaY){
  int scrollY=scrollView.getScrollY();
  ViewHelper.setTranslationY(ivCover,scrollY * 0.5f);
  ViewHelper.setTranslationY(gradientBottom,scrollY * 0.5f);
  ViewHelper.setTranslationY(gradientTop,scrollY * 0.5f);
  ViewHelper.setTranslationY(toolbar,scrollY);
  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())) {
      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);
    }
  }
}