Program: 31922
Project: 31922
Buggy source:
@SuppressLint("String_Node_Str") @Override public View getView(int position,View convertView,ViewGroup parent){
  final ViewHolder holder;
  if (convertView == null) {
    convertView=mInfalter.inflate(R.layout.gallery_item,null);
    holder=new ViewHolder();
    holder.imgQueue=(ImageView)convertView.findViewById(R.id.imgQueue);
    if (ViewParams.DEFAULT_NUM_CLUMNS != mParams.getNumClumns()) {
      LayoutParams params=holder.imgQueue.getLayoutParams();
      params.width=params.width * ViewParams.DEFAULT_NUM_CLUMNS / mParams.getNumClumns();
      params.height=params.height * ViewParams.DEFAULT_NUM_CLUMNS / mParams.getNumClumns();
      holder.imgQueue.setLayoutParams(params);
    }
    holder.imgQueueMultiSelected=(ImageView)convertView.findViewById(R.id.imgQueueMultiSelected);
    if (mParams.getCheckBoxDrawable() != null) {
      Drawable cloneDrawable=mParams.getCheckBoxDrawable().getConstantState().newDrawable();
      holder.imgQueueMultiSelected.setImageDrawable(cloneDrawable);
    }
    if (mParams.isMutiPick()) {
      holder.imgQueueMultiSelected.setOnClickListener(mCheckboxListener);
      holder.imgQueueMultiSelected.setTag(position);
      holder.imgQueueMultiSelected.setVisibility(View.VISIBLE);
    }
 else {
      holder.imgQueueMultiSelected.setVisibility(View.GONE);
    }
    convertView.setTag(holder);
  }
 else {
    holder=(ViewHolder)convertView.getTag();
  }
  holder.imgQueue.setTag(position);
  mImageLoader.cancelDisplayTask(holder.imgQueue);
  try {
    if (data.get(position).isCameraPhoto) {
      holder.imgQueueMultiSelected.setVisibility(View.GONE);
      if (null != mParams.getTakePhotoDrawable()) {
        holder.imgQueue.setImageDrawable(mParams.getTakePhotoDrawable());
      }
 else {
        holder.imgQueue.setImageResource(R.drawable.take_photo);
      }
    }
 else {
      mImageLoader.displayImage("String_Node_Str" + data.get(position).mPath,holder.imgQueue,new SimpleImageLoadingListener(){
        @Override public void onLoadingStarted(        String imageUri,        View view){
          if (null != mParams.getLoadingImageDrawable()) {
            holder.imgQueue.setImageDrawable(mParams.getLoadingImageDrawable());
          }
 else {
            holder.imgQueue.setImageResource(R.drawable.no_media);
          }
          super.onLoadingStarted(imageUri,view);
        }
      }
);
      if (mParams.isMutiPick()) {
        holder.imgQueueMultiSelected.setSelected(data.get(position).isSeleted);
      }
    }
  }
 catch (  Exception e) {
    Log.e(TAG,e.getMessage());
    e.printStackTrace();
  }
  return convertView;
}

Fixed version (ground truth):
@SuppressLint("String_Node_Str") @Override public View getView(int position,View convertView,ViewGroup parent){
  final ViewHolder holder;
  if (convertView == null) {
    int parent_width=parent.getWidth();
    int item_padding_pix=(int)(mParams.getDensity() * mParams.getItemPaddingDip());
    Log.d(TAG,"String_Node_Str" + parent_width + "String_Node_Str"+ item_padding_pix);
    convertView=mInfalter.inflate(R.layout.gallery_item,null);
    holder=new ViewHolder();
    holder.imgQueue=(ImageView)convertView.findViewById(R.id.imgQueue);
    holder.imgQueueMultiSelected=(ImageView)convertView.findViewById(R.id.imgQueueMultiSelected);
    LayoutParams params=holder.imgQueue.getLayoutParams();
    Log.d(TAG,"String_Node_Str" + params.width);
    params.width=parent_width / mParams.getNumClumns() - 2 * item_padding_pix;
    params.height=params.width;
    Log.d(TAG,"String_Node_Str" + params.width);
    holder.imgQueue.setLayoutParams(params);
    if (mParams.getCheckBoxDrawable() != null) {
      Drawable cloneDrawable=mParams.getCheckBoxDrawable().getConstantState().newDrawable();
      holder.imgQueueMultiSelected.setImageDrawable(cloneDrawable);
    }
    if (mParams.isMutiPick()) {
      holder.imgQueueMultiSelected.setOnClickListener(mCheckboxListener);
      holder.imgQueueMultiSelected.setTag(position);
      holder.imgQueueMultiSelected.setVisibility(View.VISIBLE);
    }
 else {
      holder.imgQueueMultiSelected.setVisibility(View.GONE);
    }
    convertView.setTag(holder);
  }
 else {
    holder=(ViewHolder)convertView.getTag();
  }
  holder.imgQueue.setTag(position);
  mImageLoader.cancelDisplayTask(holder.imgQueue);
  try {
    if (data.get(position).isCameraPhoto) {
      holder.imgQueueMultiSelected.setVisibility(View.GONE);
      if (null != mParams.getTakePhotoDrawable()) {
        holder.imgQueue.setImageDrawable(mParams.getTakePhotoDrawable());
      }
 else {
        holder.imgQueue.setImageResource(R.drawable.take_photo);
      }
    }
 else {
      mImageLoader.displayImage("String_Node_Str" + data.get(position).mPath,holder.imgQueue,new SimpleImageLoadingListener(){
        @Override public void onLoadingStarted(        String imageUri,        View view){
          if (null != mParams.getLoadingImageDrawable()) {
            holder.imgQueue.setImageDrawable(mParams.getLoadingImageDrawable());
          }
 else {
            holder.imgQueue.setImageResource(R.drawable.no_media);
          }
          super.onLoadingStarted(imageUri,view);
        }
      }
);
      if (mParams.isMutiPick()) {
        holder.imgQueueMultiSelected.setSelected(data.get(position).isSeleted);
      }
    }
  }
 catch (  Exception e) {
    Log.e(TAG,e.getMessage());
    e.printStackTrace();
  }
  return convertView;
}