Program: 26809
Project: 26809
Buggy source:
@Override public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()) {
case R.id.actionToggleValues:
{
      for (      DataSet<?> set : mChart.getData().getDataSets())       set.setDrawValues(!set.isDrawValuesEnabled());
      mChart.invalidate();
      break;
    }
case R.id.actionToggleHighlight:
{
    if (mChart.isHighlightEnabled())     mChart.setHighlightEnabled(false);
 else     mChart.setHighlightEnabled(true);
    mChart.invalidate();
    break;
  }
case R.id.actionToggleRotate:
{
  if (mChart.isRotationEnabled())   mChart.setRotationEnabled(false);
 else   mChart.setRotationEnabled(true);
  mChart.invalidate();
  break;
}
case R.id.actionToggleFilled:
{
ArrayList<RadarDataSet> sets=(ArrayList<RadarDataSet>)mChart.getData().getDataSets();
for (RadarDataSet set : sets) {
  if (set.isDrawFilledEnabled())   set.setDrawFilled(false);
 else   set.setDrawFilled(true);
}
mChart.invalidate();
break;
}
case R.id.actionSave:
{
if (mChart.saveToPath("String_Node_Str" + System.currentTimeMillis(),"String_Node_Str")) {
Toast.makeText(getApplicationContext(),"String_Node_Str",Toast.LENGTH_SHORT).show();
}
 else Toast.makeText(getApplicationContext(),"String_Node_Str",Toast.LENGTH_SHORT).show();
break;
}
case R.id.actionToggleXLabels:
{
if (mChart.isDrawXLabelsEnabled()) mChart.setDrawXLabels(false);
 else mChart.setDrawXLabels(true);
mChart.invalidate();
break;
}
case R.id.actionToggleYLabels:
{
mChart.getYAxis().setEnabled(!mChart.getYAxis().isEnabled());
mChart.invalidate();
break;
}
case R.id.actionToggleSpin:
{
mChart.spin(2000,mChart.getRotationAngle(),mChart.getRotationAngle() + 360);
break;
}
}
return true;
}

Fixed version (ground truth):
@Override public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()) {
case R.id.actionToggleValues:
{
      for (      DataSet<?> set : mChart.getData().getDataSets())       set.setDrawValues(!set.isDrawValuesEnabled());
      mChart.invalidate();
      break;
    }
case R.id.actionToggleHighlight:
{
    if (mChart.isHighlightEnabled())     mChart.setHighlightEnabled(false);
 else     mChart.setHighlightEnabled(true);
    mChart.invalidate();
    break;
  }
case R.id.actionToggleRotate:
{
  if (mChart.isRotationEnabled())   mChart.setRotationEnabled(false);
 else   mChart.setRotationEnabled(true);
  mChart.invalidate();
  break;
}
case R.id.actionToggleFilled:
{
ArrayList<RadarDataSet> sets=(ArrayList<RadarDataSet>)mChart.getData().getDataSets();
for (RadarDataSet set : sets) {
  if (set.isDrawFilledEnabled())   set.setDrawFilled(false);
 else   set.setDrawFilled(true);
}
mChart.invalidate();
break;
}
case R.id.actionSave:
{
if (mChart.saveToPath("String_Node_Str" + System.currentTimeMillis(),"String_Node_Str")) {
Toast.makeText(getApplicationContext(),"String_Node_Str",Toast.LENGTH_SHORT).show();
}
 else Toast.makeText(getApplicationContext(),"String_Node_Str",Toast.LENGTH_SHORT).show();
break;
}
case R.id.actionToggleXLabels:
{
mChart.getXAxis().setEnabled(!mChart.getXAxis().isEnabled());
mChart.invalidate();
break;
}
case R.id.actionToggleYLabels:
{
mChart.getYAxis().setEnabled(!mChart.getYAxis().isEnabled());
mChart.invalidate();
break;
}
case R.id.actionToggleSpin:
{
mChart.spin(2000,mChart.getRotationAngle(),mChart.getRotationAngle() + 360);
break;
}
}
return true;
}