Program: 162633
Project: 162633
Buggy source:
public View getView(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.simplerow,null);
    final ViewHolder vholder=new ViewHolder();
    vholder.txtTitle=(TextView)view.findViewById(R.id.firstline);
    vholder.imageView=(ImageView)view.findViewById(R.id.icon);
    vholder.rl=(RelativeLayout)view.findViewById(R.id.second);
    view.setTag(vholder);
  }
 else {
    view=convertView;
  }
  final ViewHolder holder=(ViewHolder)view.getTag();
  holder.imageView.setImageDrawable(rowItem.getImageId());
  final Bitmap b=app.getBitmapFromMemCache(app.c.get(p).publicSourceDir);
  if (b != null) {
    holder.imageView.setImageBitmap(b);
  }
 else {
    ImageView i=holder.imageView;
    i.setTag("String_Node_Str" + p);
    app.loadBitmap(app.c.get(p),i,((BitmapDrawable)rowItem.getImageId()).getBitmap());
  }
  holder.txtTitle.setText(rowItem.getTitle());
  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 {
        Intent i=app.getActivity().getPackageManager().getLaunchIntentForPackage(app.c.get(p).packageName);
        if (i != null)         app.startActivity(i);
 else         Toast.makeText(app.getActivity(),"String_Node_Str",Toast.LENGTH_LONG).show();
      }
    }
  }
);
  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) {
        holder.rl.setBackgroundResource(R.drawable.listitem1);
      }
 else       if (app.uimode == 1) {
        holder.rl.setBackgroundResource(R.drawable.bg_card);
      }
    }
  }
  return view;
}

Fixed version (ground truth):
public View getView(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.simplerow,null);
    final ViewHolder vholder=new ViewHolder();
    vholder.txtTitle=(TextView)view.findViewById(R.id.firstline);
    vholder.imageView=(ImageView)view.findViewById(R.id.icon);
    vholder.rl=(RelativeLayout)view.findViewById(R.id.second);
    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.rl.setClickable(true);
  holder.rl.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View p1){
      if (app.selection == true) {
        toggleChecked(p);
        app.mActionMode.invalidate();
      }
 else {
        Intent i=app.getActivity().getPackageManager().getLaunchIntentForPackage(app.c.get(p).packageName);
        if (i != null)         app.startActivity(i);
 else         Toast.makeText(app.getActivity(),"String_Node_Str",Toast.LENGTH_LONG).show();
      }
    }
  }
);
  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) {
        holder.rl.setBackgroundResource(R.drawable.listitem1);
      }
 else       if (app.uimode == 1) {
        holder.rl.setBackgroundResource(R.drawable.bg_card);
      }
    }
  }
  return view;
}