Program: 165339
Project: 165339
Buggy source:
@Override public View getView(int position,View convertView,ViewGroup parent){
  boolean init=false;
  if (convertView == null) {
    convertView=((LayoutInflater)mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.applistitem,null);
    init=true;
  }
  TextView name=(TextView)convertView.findViewById(R.id.name);
  TextView summary=(TextView)convertView.findViewById(R.id.summary);
  TextView status=(TextView)convertView.findViewById(R.id.status);
  TextView license=(TextView)convertView.findViewById(R.id.license);
  DB.App app=items.get(position);
  status.setText(getVersionInfo(app));
  license.setText(app.license);
  name.setText(app.name);
  summary.setText(app.summary);
  ImageView icon=(ImageView)convertView.findViewById(R.id.icon);
  File icn=new File(DB.getIconsPath(mContext),app.icon);
  if (icn.exists() && icn.length() > 0) {
    new Uri.Builder().build();
    icon.setImageURI(Uri.parse(icn.getPath()));
  }
 else {
    icon.setImageResource(android.R.drawable.sym_def_app_icon);
  }
  ImageView iconInstalled=(ImageView)convertView.findViewById(R.id.icon_status_installed);
  ImageView iconUpdates=(ImageView)convertView.findViewById(R.id.icon_status_has_updates);
  if (init) {
    if (pref_compactlayout == null) {
      SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(mContext);
      pref_compactlayout=prefs.getBoolean("String_Node_Str",false);
    }
    if (pref_compactlayout == true) {
      iconInstalled.setImageResource(R.drawable.ic_cab_done_holo_dark);
      iconUpdates.setImageResource(R.drawable.ic_menu_refresh);
      status.setVisibility(View.GONE);
      license.setVisibility(View.GONE);
      RelativeLayout.LayoutParams summaryLayout=new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT,RelativeLayout.LayoutParams.WRAP_CONTENT);
      summaryLayout.addRule(RelativeLayout.BELOW,R.id.name);
      if (Utils.hasApi(17))       summaryLayout.addRule(RelativeLayout.END_OF,R.id.icon);
 else       summaryLayout.addRule(RelativeLayout.RIGHT_OF,R.id.icon);
      summary.setLayoutParams(summaryLayout);
      summary.setPadding(0,0,0,0);
    }
  }
  if (pref_compactlayout == true) {
    if (app.hasUpdates && showStatusUpdate()) {
      iconUpdates.setVisibility(View.VISIBLE);
    }
 else {
      iconUpdates.setVisibility(View.GONE);
    }
    if (app.installedVerCode > 0 && showStatusInstalled()) {
      iconInstalled.setVisibility(View.VISIBLE);
    }
 else {
      iconInstalled.setVisibility(View.GONE);
    }
  }
  View[] views={convertView,status,summary,license,name};
  for (  View view : views) {
    view.setEnabled(app.compatible);
  }
  return convertView;
}

Fixed version (ground truth):
@Override public View getView(int position,View convertView,ViewGroup parent){
  boolean init=false;
  if (convertView == null) {
    convertView=((LayoutInflater)mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.applistitem,null);
    init=true;
  }
  TextView name=(TextView)convertView.findViewById(R.id.name);
  TextView summary=(TextView)convertView.findViewById(R.id.summary);
  TextView status=(TextView)convertView.findViewById(R.id.status);
  TextView license=(TextView)convertView.findViewById(R.id.license);
  DB.App app=items.get(position);
  status.setText(getVersionInfo(app));
  license.setText(app.license);
  name.setText(app.name);
  summary.setText(app.summary);
  ImageView icon=(ImageView)convertView.findViewById(R.id.icon);
  File icn=new File(DB.getIconsPath(mContext),app.icon);
  if (icn.exists() && icn.length() > 0) {
    new Uri.Builder().build();
    icon.setImageURI(Uri.parse(icn.getPath()));
  }
 else {
    icon.setImageResource(android.R.drawable.sym_def_app_icon);
  }
  ImageView iconInstalled=(ImageView)convertView.findViewById(R.id.icon_status_installed);
  ImageView iconUpdates=(ImageView)convertView.findViewById(R.id.icon_status_has_updates);
  if (init) {
    if (pref_compactlayout == null) {
      SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(mContext);
      pref_compactlayout=prefs.getBoolean("String_Node_Str",false);
    }
    if (pref_compactlayout == true) {
      iconInstalled.setImageResource(R.drawable.ic_cab_done_holo_dark);
      iconUpdates.setImageResource(R.drawable.ic_menu_refresh);
      status.setVisibility(View.GONE);
      license.setVisibility(View.GONE);
      RelativeLayout.LayoutParams summaryLayout=new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT,RelativeLayout.LayoutParams.WRAP_CONTENT);
      summaryLayout.addRule(RelativeLayout.BELOW,R.id.name);
      summaryLayout.addRule(LayoutCompat.RelativeLayout.END_OF,R.id.icon);
      summary.setLayoutParams(summaryLayout);
      summary.setPadding(0,0,0,0);
    }
  }
  if (pref_compactlayout == true) {
    if (app.hasUpdates && showStatusUpdate()) {
      iconUpdates.setVisibility(View.VISIBLE);
    }
 else {
      iconUpdates.setVisibility(View.GONE);
    }
    if (app.installedVerCode > 0 && showStatusInstalled()) {
      iconInstalled.setVisibility(View.VISIBLE);
    }
 else {
      iconInstalled.setVisibility(View.GONE);
    }
  }
  View[] views={convertView,status,summary,license,name};
  for (  View view : views) {
    view.setEnabled(app.compatible);
  }
  return convertView;
}