Program: 24314
Project: 24314
Buggy source:
@Override public View getView(int position,View convertView,ViewGroup parent){
  TextView view=(TextView)convertView;
  int viewType=getItemViewType(position);
  if (null == convertView) {
    view=new TextView(m_context);
    view.setTextColor(Color.WHITE);
    view.setTypeface(SANS_SERIF_LITE);
    view.setGravity(Gravity.CENTER_VERTICAL);
switch (viewType) {
case Types.TITLE:
      view.setMinHeight(MIN_HEIGHT_MAIN);
    view.setPadding(Paddings.V_MAIN,Paddings.H_MAIN,Paddings.V_MAIN,Paddings.H_MAIN);
  view.setTextSize(TypedValue.COMPLEX_UNIT_SP,TextSizes.MAIN);
view.setCompoundDrawablePadding(Paddings.COMPOUND_DRAWABLE);
break;
case Types.DIVIDER:
ColorDrawable divider=new ColorDrawable(Color.parseColor("String_Node_Str"));
divider.setBounds(0,0,parent.getWidth(),3);
view.setCompoundDrawables(null,null,null,divider);
view.setCompoundDrawablePadding(Paddings.V_MAIN);
view.setPadding(Paddings.H_DIV,Paddings.V_DIV,Paddings.H_DIV,Paddings.V_DIV);
view.setText(m_context.getString(R.string.tag_title));
view.setTextSize(TypedValue.COMPLEX_UNIT_SP,TextSizes.DIV);
break;
case Types.TAG:
view.setMinHeight(MIN_HEIGHT_TAG);
view.setTextSize(TypedValue.COMPLEX_UNIT_SP,TextSizes.TAG);
view.setPadding(Paddings.H_TAG,-Paddings.V_TAG,Paddings.H_TAG,Paddings.V_TAG);
view.setLineSpacing(0.0F,0.1F);
}
}
switch (viewType) {
case Types.TITLE:
view.setText(m_navigationTitles[position]);
view.setCompoundDrawablesRelativeWithIntrinsicBounds(NAV_ICONS[position],0,0,0);
break;
case Types.TAG:
int count=getItem(position - 4).m_count;
String tag=getItem(position - 4).m_title;
String allTag=m_context.getString(R.string.all_tag);
tag=Utilities.isRtl(allTag.charAt(0)) ? (char)0x200F + tag + '\n'+ (char)0x200E : (char)0x200E + tag + '\n'+ (char)0x200F;
view.setText(tag + (0 == count ? "String_Node_Str" : Utilities.getLocaleInt(count)));
}
return view;
}

Fixed version (ground truth):
@Override public View getView(int position,View convertView,ViewGroup parent){
  TextView view=(TextView)convertView;
  int viewType=getItemViewType(position);
  if (null == convertView) {
    view=new TextView(m_context);
    view.setTextColor(Color.WHITE);
    view.setTypeface(SANS_SERIF_LITE);
    view.setGravity(Gravity.CENTER_VERTICAL);
switch (viewType) {
case Types.TITLE:
      view.setMinHeight(MIN_HEIGHT_MAIN);
    view.setPadding(Paddings.V_MAIN,Paddings.H_MAIN,Paddings.V_MAIN,Paddings.H_MAIN);
  view.setTextSize(TypedValue.COMPLEX_UNIT_SP,TextSizes.MAIN);
view.setCompoundDrawablePadding(Paddings.COMPOUND_DRAWABLE);
break;
case Types.DIVIDER:
ColorDrawable divider=new ColorDrawable(Color.parseColor("String_Node_Str"));
divider.setBounds(0,0,parent.getWidth(),3);
view.setCompoundDrawables(null,null,null,divider);
view.setCompoundDrawablePadding(Paddings.V_MAIN);
view.setPadding(Paddings.H_DIV,Paddings.V_DIV,Paddings.H_DIV,Paddings.V_DIV);
view.setText(m_context.getString(R.string.tag_title));
view.setTextSize(TypedValue.COMPLEX_UNIT_SP,TextSizes.DIV);
break;
case Types.TAG:
view.setMinHeight(MIN_HEIGHT_TAG);
view.setTextSize(TypedValue.COMPLEX_UNIT_SP,TextSizes.TAG);
view.setPadding(Paddings.H_TAG,-Paddings.V_TAG,Paddings.H_TAG,Paddings.V_TAG);
view.setLineSpacing(0.0F,0.1F);
}
}
switch (viewType) {
case Types.TITLE:
view.setText(m_navigationTitles[position]);
view.setCompoundDrawablesRelativeWithIntrinsicBounds(NAV_ICONS[position],0,0,0);
break;
case Types.TAG:
int count=getItem(position - 4).m_count;
String tag=getItem(position - 4).m_title;
String allTag=m_context.getString(R.string.all_tag);
tag=Utilities.isTextRtl(allTag) ? (char)0x200F + tag + '\n'+ (char)0x200E : (char)0x200E + tag + '\n'+ (char)0x200F;
view.setText(tag + (0 == count ? "String_Node_Str" : Utilities.getLocaleInt(count)));
}
return view;
}