Program: 13652
Project: 13652
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View view=inflater.inflate(R.layout.photo_picker_fragment,container,false);
  mRecycler=(RecyclerView)view.findViewById(R.id.recycler);
  mRecycler.setHasFixedSize(true);
  final int minDistance=WPMediaUtils.getFlingDistanceToDisableThumbLoading(getActivity());
  mRecycler.setOnFlingListener(new RecyclerView.OnFlingListener(){
    @Override public boolean onFling(    int velocityX,    int velocityY){
      if (Math.abs(velocityY) > minDistance) {
        getAdapter().setLoadThumbnails(false);
      }
      return false;
    }
  }
);
  mRecycler.addOnScrollListener(new RecyclerView.OnScrollListener(){
    @Override public void onScrollStateChanged(    RecyclerView recyclerView,    int newState){
      super.onScrollStateChanged(recyclerView,newState);
      if (newState == RecyclerView.SCROLL_STATE_IDLE) {
        getAdapter().setLoadThumbnails(true);
      }
    }
  }
);
  mBottomBar=view.findViewById(R.id.bottom_bar);
  if (mBrowserType == MediaBrowserType.AZTEC_EDITOR_PICKER) {
    mBottomBar.setVisibility(View.GONE);
  }
 else {
    mBottomBar.findViewById(R.id.icon_camera).setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        if (mBrowserType.isSingleImagePicker()) {
          doIconClicked(PhotoPickerIcon.ANDROID_CAPTURE_PHOTO);
        }
 else {
          showCameraPopupMenu(v);
        }
      }
    }
);
    mBottomBar.findViewById(R.id.icon_picker).setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        if (mBrowserType.isSingleImagePicker()) {
          doIconClicked(PhotoPickerIcon.ANDROID_CHOOSE_PHOTO);
        }
 else {
          showPickerPopupMenu(v);
        }
      }
    }
);
    View wpMedia=mBottomBar.findViewById(R.id.icon_wpmedia);
    if (mSite == null) {
      wpMedia.setVisibility(View.GONE);
    }
 else {
      wpMedia.setOnClickListener(new View.OnClickListener(){
        @Override public void onClick(        View v){
          doIconClicked(PhotoPickerIcon.WP_MEDIA);
        }
      }
);
    }
  }
  mSoftAskContainer=(ViewGroup)view.findViewById(R.id.container_soft_ask);
  return view;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View view=inflater.inflate(R.layout.photo_picker_fragment,container,false);
  mRecycler=(RecyclerView)view.findViewById(R.id.recycler);
  mRecycler.setHasFixedSize(true);
  final int minDistance=WPMediaUtils.getFlingDistanceToDisableThumbLoading(getActivity());
  mRecycler.setOnFlingListener(new RecyclerView.OnFlingListener(){
    @Override public boolean onFling(    int velocityX,    int velocityY){
      if (Math.abs(velocityY) > minDistance) {
        getAdapter().setLoadThumbnails(false);
      }
      return false;
    }
  }
);
  mRecycler.addOnScrollListener(new RecyclerView.OnScrollListener(){
    @Override public void onScrollStateChanged(    RecyclerView recyclerView,    int newState){
      super.onScrollStateChanged(recyclerView,newState);
      if (newState == RecyclerView.SCROLL_STATE_IDLE) {
        getAdapter().setLoadThumbnails(true);
      }
    }
  }
);
  mBottomBar=view.findViewById(R.id.bottom_bar);
  if (!canShowBottomBar()) {
    mBottomBar.setVisibility(View.GONE);
  }
 else {
    mBottomBar.findViewById(R.id.icon_camera).setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        if (mBrowserType.isSingleImagePicker()) {
          doIconClicked(PhotoPickerIcon.ANDROID_CAPTURE_PHOTO);
        }
 else {
          showCameraPopupMenu(v);
        }
      }
    }
);
    mBottomBar.findViewById(R.id.icon_picker).setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        if (mBrowserType.isSingleImagePicker()) {
          doIconClicked(PhotoPickerIcon.ANDROID_CHOOSE_PHOTO);
        }
 else {
          showPickerPopupMenu(v);
        }
      }
    }
);
    View wpMedia=mBottomBar.findViewById(R.id.icon_wpmedia);
    if (mSite == null) {
      wpMedia.setVisibility(View.GONE);
    }
 else {
      wpMedia.setOnClickListener(new View.OnClickListener(){
        @Override public void onClick(        View v){
          doIconClicked(PhotoPickerIcon.WP_MEDIA);
        }
      }
);
    }
  }
  mSoftAskContainer=(ViewGroup)view.findViewById(R.id.container_soft_ask);
  return view;
}