Program: 26268
Project: 26268
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
  setContentView(R.layout.activity_piechart);
  tvX=(TextView)findViewById(R.id.tvXMax);
  tvY=(TextView)findViewById(R.id.tvYMax);
  mSeekBarX=(SeekBar)findViewById(R.id.seekBar1);
  mSeekBarY=(SeekBar)findViewById(R.id.seekBar2);
  mSeekBarY.setProgress(10);
  mSeekBarX.setOnSeekBarChangeListener(this);
  mSeekBarY.setOnSeekBarChangeListener(this);
  mChart=(PieChart)findViewById(R.id.chart1);
  mChart.setUsePercentValues(true);
  mChart.setDescription("String_Node_Str");
  mChart.setExtraOffsets(5,10,5,5);
  mChart.setDragDecelerationFrictionCoef(0.95f);
  mChart.setCenterTextTypeface(mTfLight);
  mChart.setCenterText(generateCenterSpannableText());
  mChart.setDrawHoleEnabled(true);
  mChart.setHoleColor(Color.WHITE);
  mChart.setTransparentCircleColor(Color.WHITE);
  mChart.setTransparentCircleAlpha(110);
  mChart.setHoleRadius(58f);
  mChart.setTransparentCircleRadius(61f);
  mChart.setDrawCenterText(true);
  mChart.setRotationAngle(0);
  mChart.setRotationEnabled(true);
  mChart.setHighlightPerTapEnabled(true);
  mChart.setOnChartValueSelectedListener(this);
  setData(4,100);
  mChart.animateY(1400,Easing.EasingOption.EaseInOutQuad);
  Legend l=mChart.getLegend();
  l.setPosition(LegendPosition.RIGHT_OF_CHART);
  l.setXEntrySpace(7f);
  l.setYEntrySpace(0f);
  l.setYOffset(0f);
  mChart.setEntryLabelColor(Color.WHITE);
  mChart.setEntryLabelTypeface(mTfRegular);
  mChart.setEntryLabelTextSize(12f);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
  setContentView(R.layout.activity_piechart);
  tvX=(TextView)findViewById(R.id.tvXMax);
  tvY=(TextView)findViewById(R.id.tvYMax);
  mSeekBarX=(SeekBar)findViewById(R.id.seekBar1);
  mSeekBarY=(SeekBar)findViewById(R.id.seekBar2);
  mSeekBarX.setProgress(4);
  mSeekBarY.setProgress(10);
  mChart=(PieChart)findViewById(R.id.chart1);
  mChart.setUsePercentValues(true);
  mChart.setDescription("String_Node_Str");
  mChart.setExtraOffsets(5,10,5,5);
  mChart.setDragDecelerationFrictionCoef(0.95f);
  mChart.setCenterTextTypeface(mTfLight);
  mChart.setCenterText(generateCenterSpannableText());
  mChart.setDrawHoleEnabled(true);
  mChart.setHoleColor(Color.WHITE);
  mChart.setTransparentCircleColor(Color.WHITE);
  mChart.setTransparentCircleAlpha(110);
  mChart.setHoleRadius(58f);
  mChart.setTransparentCircleRadius(61f);
  mChart.setDrawCenterText(true);
  mChart.setRotationAngle(0);
  mChart.setRotationEnabled(true);
  mChart.setHighlightPerTapEnabled(true);
  mChart.setOnChartValueSelectedListener(this);
  setData(4,100);
  mChart.animateY(1400,Easing.EasingOption.EaseInOutQuad);
  mSeekBarX.setOnSeekBarChangeListener(this);
  mSeekBarY.setOnSeekBarChangeListener(this);
  Legend l=mChart.getLegend();
  l.setPosition(LegendPosition.RIGHT_OF_CHART);
  l.setXEntrySpace(7f);
  l.setYEntrySpace(0f);
  l.setYOffset(0f);
  mChart.setEntryLabelColor(Color.WHITE);
  mChart.setEntryLabelTypeface(mTfRegular);
  mChart.setEntryLabelTextSize(12f);
}