Program: 110096
Project: 110096
Buggy source:
private void pvInit(ViewGroup playerv,ViewGroup playerDrawer){
  ViewGroup progv=(ViewGroup)playerv.findViewById(R.id.music_player_progress);
  SeekBar sb=(SeekBar)progv.findViewById(R.id.music_player_seekbar);
  sb.setMax(SEEKBAR_MAX);
  sb.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener(){
    @Override public void onStopTrackingTouch(    SeekBar seekBar){
      mpSeekTo((int)((long)seekBar.getProgress() * (long)mpGetDuration() / SEEKBAR_MAX));
    }
    @Override public void onStartTrackingTouch(    SeekBar seekBar){
    }
    @Override public void onProgressChanged(    SeekBar seekBar,    int progress,    boolean fromUser){
    }
  }
);
  mUpdateProg.setProgressView(progv);
  if (null != playerDrawer) {
    mVlm.setOnListChangedListener(new VideoListManager.OnListChangedListener(){
      @Override public void onListChanged(      VideoListManager vlm){
        if (null == mPlayerDrawer)         return;
        if (mVlm.hasActiveVideo()) {
          ListView lv=(ListView)mPlayerDrawer.findViewById(R.id.music_player_drawer_content);
          YTPlayerVidArrayAdapter adapter=(YTPlayerVidArrayAdapter)lv.getAdapter();
          if (null != adapter) {
            adapter.setVidArray(mVlm.getVideoList());
            adapter.notifyDataSetChanged();
          }
        }
 else         pvDisableDrawer(mPlayerDrawer);
      }
    }
);
    SlidingDrawer drawer=(SlidingDrawer)playerDrawer.findViewById(R.id.music_player_sliding_drawer);
    drawer.setOnDrawerOpenListener(new SlidingDrawer.OnDrawerOpenListener(){
      @Override public void onDrawerOpened(){
        if (!mVlm.hasActiveVideo())         return;
        ListView lv=(ListView)mPlayerDrawer.findViewById(R.id.music_player_drawer_content);
        int topPos=mVlm.getActiveVideoIndex() - 1;
        if (topPos < 0)         topPos=0;
        lv.setSelectionFromTop(topPos,0);
      }
    }
);
  }
  pvSetupControlButton(playerv);
  pvConfigureAll(playerv,playerDrawer,MPState.INVALID,mpGetState());
}

Fixed version (ground truth):
private void pvInit(ViewGroup playerv,ViewGroup playerDrawer){
  ViewGroup progv=(ViewGroup)playerv.findViewById(R.id.music_player_progress);
  SeekBar sb=(SeekBar)progv.findViewById(R.id.music_player_seekbar);
  sb.setMax(SEEKBAR_MAX);
  sb.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener(){
    @Override public void onStopTrackingTouch(    SeekBar seekBar){
      mpSeekTo((int)((long)seekBar.getProgress() * (long)mpGetDuration() / SEEKBAR_MAX));
    }
    @Override public void onStartTrackingTouch(    SeekBar seekBar){
    }
    @Override public void onProgressChanged(    SeekBar seekBar,    int progress,    boolean fromUser){
    }
  }
);
  mUpdateProg.setProgressView(progv);
  if (null != playerDrawer) {
    mVlm.setOnListChangedListener(new VideoListManager.OnListChangedListener(){
      @Override public void onListChanged(      VideoListManager vlm){
        if (null == mPlayerDrawer)         return;
        if (mVlm.hasActiveVideo()) {
          ListView lv=(ListView)mPlayerDrawer.findViewById(R.id.music_player_drawer_content);
          YTPlayerVidArrayAdapter adapter=(YTPlayerVidArrayAdapter)lv.getAdapter();
          if (null != adapter) {
            adapter.setVidArray(mVlm.getVideoList());
            adapter.notifyDataSetChanged();
          }
        }
 else         pvDisableDrawer(mPlayerDrawer);
      }
    }
);
    SlidingDrawer drawer=(SlidingDrawer)playerDrawer.findViewById(R.id.music_player_sliding_drawer);
    drawer.setOnDrawerOpenListener(new SlidingDrawer.OnDrawerOpenListener(){
      @Override public void onDrawerOpened(){
        if (!mVlm.hasActiveVideo())         return;
        ListView lv=(ListView)mPlayerDrawer.findViewById(R.id.music_player_drawer_content);
        int topPos=mVlm.getActiveVideoIndex() - 1;
        if (topPos < 0)         topPos=0;
        lv.setSelectionFromTop(topPos,0);
      }
    }
);
  }
  pvEnableDrawer(playerDrawer);
  pvSetupControlButton(playerv);
  pvConfigureAll(playerv,playerDrawer,MPState.INVALID,mpGetState());
}