Program: 56446
Project: 56446
Buggy source:
@Override public void onViewCreated(View view,Bundle inState){
  super.onViewCreated(view,inState);
  ButterKnife.inject(this,view);
  wait=true;
  view.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener(){
    @Override public void onGlobalLayout(){
      getView().getViewTreeObserver().removeOnGlobalLayoutListener(this);
      wait=false;
      if (currentState == STATE_CONTENT_VISIBLE) {
        content.setAlpha(1.0f);
        content.setVisibility(View.VISIBLE);
        progress.setVisibility(View.GONE);
      }
 else {
        content.setVisibility(View.GONE);
        progress.setAlpha(1.0f);
        progress.setVisibility(View.VISIBLE);
      }
      if (!isTablet && getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
        content.setScrollY(screen.getHeight() / 2);
      }
    }
  }
);
  ratingContainer.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      RatingDialog.newInstance(RatingDialog.Type.EPISODE,episodeId,currentRating).show(getFragmentManager(),DIALOG_RATING);
    }
  }
);
  if (!isTablet) {
    content.setListener(new ObservableScrollView.ScrollListener(){
      @Override public void onScrollChanged(      int l,      int t){
        final int offset=(int)(t / 2.0f);
        screen.setTranslationY(offset);
      }
    }
);
  }
  if (overflow != null) {
    overflow.setListener(new OverflowView.OverflowActionListener(){
      @Override public void onPopupShown(){
      }
      @Override public void onPopupDismissed(){
      }
      @Override public void onActionSelected(      int action){
        onActionSelected(action);
      }
    }
);
  }
}

Fixed version (ground truth):
@Override public void onViewCreated(View view,Bundle inState){
  super.onViewCreated(view,inState);
  ButterKnife.inject(this,view);
  wait=true;
  view.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener(){
    @Override public void onGlobalLayout(){
      getView().getViewTreeObserver().removeOnGlobalLayoutListener(this);
      wait=false;
      if (currentState == STATE_CONTENT_VISIBLE) {
        content.setAlpha(1.0f);
        content.setVisibility(View.VISIBLE);
        progress.setVisibility(View.GONE);
      }
 else {
        content.setVisibility(View.GONE);
        progress.setAlpha(1.0f);
        progress.setVisibility(View.VISIBLE);
      }
      if (!isTablet && getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
        content.setScrollY(screen.getHeight() / 2);
      }
    }
  }
);
  ratingContainer.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      RatingDialog.newInstance(RatingDialog.Type.EPISODE,episodeId,currentRating).show(getFragmentManager(),DIALOG_RATING);
    }
  }
);
  if (!isTablet) {
    content.setListener(new ObservableScrollView.ScrollListener(){
      @Override public void onScrollChanged(      int l,      int t){
        final int offset=(int)(t / 2.0f);
        screen.setTranslationY(offset);
      }
    }
);
  }
  if (overflow != null) {
    overflow.setListener(new OverflowView.OverflowActionListener(){
      @Override public void onPopupShown(){
      }
      @Override public void onPopupDismissed(){
      }
      @Override public void onActionSelected(      int action){
        EpisodeFragment.this.onActionSelected(action);
      }
    }
);
  }
}