Program: 162607
Project: 162607
Buggy source:
public View getView(final int position,View convertView,ViewGroup parent){
  final Layoutelements rowItem=getItem(position);
  View view;
  final int p=position;
  if (convertView == null) {
    LayoutInflater mInflater=(LayoutInflater)context.getSystemService(Activity.LAYOUT_INFLATER_SERVICE);
    view=mInflater.inflate(R.layout.rowlayout,null);
    final ViewHolder vholder=new ViewHolder();
    vholder.txtTitle=(TextView)view.findViewById(R.id.firstline);
    vholder.imageView=(ImageView)view.findViewById(R.id.bicon);
    vholder.rl=(RelativeLayout)view.findViewById(R.id.second);
    vholder.txtDesc=(TextView)view.findViewById(R.id.date);
    vholder.imageView.setVisibility(View.VISIBLE);
    view.findViewById(R.id.icon).setVisibility(View.GONE);
    view.findViewById(R.id.cicon).setVisibility(View.GONE);
    view.setTag(vholder);
  }
 else {
    view=convertView;
  }
  final ViewHolder holder=(ViewHolder)view.getTag();
  holder.imageView.setImageDrawable(rowItem.getImageId());
  app.ic.cancelLoad(holder.imageView);
  app.ic.loadDrawable(holder.imageView,new File(rowItem.getDesc()),null);
  holder.txtTitle.setText(rowItem.getTitle());
  holder.txtDesc.setText(rowItem.getSize());
  holder.rl.setClickable(true);
  holder.rl.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View p1){
      if (app.selection == true) {
        toggleChecked(p);
        app.mActionMode.invalidate();
      }
 else {
        app.onLongItemClick(p);
      }
    }
  }
);
  holder.rl.setOnLongClickListener(new View.OnLongClickListener(){
    public boolean onLongClick(    View p1){
      app.onLongItemClick(p);
      return false;
    }
  }
);
  Boolean checked=myChecked.get(position);
  if (checked != null) {
    if (checked) {
      holder.rl.setBackgroundColor(Color.parseColor("String_Node_Str"));
    }
 else {
      if (app.uimode == 0) {
        if (app.theme1 == 0) {
          holder.rl.setBackgroundResource(R.drawable.safr_ripple_white);
        }
 else {
          holder.rl.setBackgroundResource(R.drawable.safr_ripple_black);
        }
      }
 else       if (app.uimode == 1) {
        holder.rl.setBackgroundResource(R.drawable.bg_card);
      }
    }
  }
  return view;
}

Fixed version (ground truth):
public View getView(final int position,View convertView,ViewGroup parent){
  final Layoutelements rowItem=getItem(position);
  View view;
  final int p=position;
  if (convertView == null) {
    LayoutInflater mInflater=(LayoutInflater)context.getSystemService(Activity.LAYOUT_INFLATER_SERVICE);
    view=mInflater.inflate(R.layout.rowlayout,null);
    final ViewHolder vholder=new ViewHolder();
    vholder.txtTitle=(TextView)view.findViewById(R.id.firstline);
    vholder.imageView=(ImageView)view.findViewById(R.id.bicon);
    vholder.rl=(RelativeLayout)view.findViewById(R.id.second);
    vholder.txtDesc=(TextView)view.findViewById(R.id.date);
    vholder.imageView.setVisibility(View.VISIBLE);
    view.findViewById(R.id.icon).setVisibility(View.GONE);
    view.findViewById(R.id.cicon).setVisibility(View.GONE);
    view.setTag(vholder);
  }
 else {
    view=convertView;
  }
  final ViewHolder holder=(ViewHolder)view.getTag();
  holder.imageView.setImageDrawable(rowItem.getImageId());
  app.ic.cancelLoad(holder.imageView);
  app.ic.loadDrawable(holder.imageView,new File(rowItem.getDesc()),null);
  holder.txtTitle.setText(rowItem.getTitle());
  holder.txtDesc.setText(rowItem.getSize());
  holder.rl.setClickable(true);
  holder.rl.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View p1){
      if (app.selection == true) {
        toggleChecked(p);
        app.mActionMode.invalidate();
      }
 else {
        app.onLongItemClick(p);
      }
    }
  }
);
  holder.rl.setOnLongClickListener(new View.OnLongClickListener(){
    public boolean onLongClick(    View p1){
      app.onLongItemClick(p);
      return false;
    }
  }
);
  Boolean checked=myChecked.get(position);
  if (checked != null) {
    if (checked) {
      holder.rl.setBackgroundColor(Color.parseColor("String_Node_Str"));
    }
 else {
      if (app.theme1 == 0) {
        holder.rl.setBackgroundResource(R.drawable.safr_ripple_white);
      }
 else {
        holder.rl.setBackgroundResource(R.drawable.safr_ripple_black);
      }
    }
  }
  return view;
}