Program: 18219
Project: 18219
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_linechart);
  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(45);
  mSeekBarY.setProgress(100);
  mSeekBarY.setOnSeekBarChangeListener(this);
  mSeekBarX.setOnSeekBarChangeListener(this);
  mChart=(LineChart)findViewById(R.id.chart1);
  mChart.setOnChartValueSelectedListener(this);
  mChart.setDescription("String_Node_Str");
  mChart.setNoDataTextDescription("String_Node_Str");
  mChart.setTouchEnabled(true);
  mChart.setDragDecelerationFrictionCoef(0.9f);
  mChart.setDragEnabled(true);
  mChart.setScaleEnabled(true);
  mChart.setDrawGridBackground(false);
  mChart.setHighlightPerDragEnabled(true);
  mChart.setPinchZoom(true);
  mChart.setBackgroundColor(Color.LTGRAY);
  setData(20,30);
  mChart.animateX(2500);
  Typeface tf=Typeface.createFromAsset(getAssets(),"String_Node_Str");
  Legend l=mChart.getLegend();
  l.setForm(LegendForm.LINE);
  l.setTypeface(tf);
  l.setTextSize(11f);
  l.setTextColor(Color.WHITE);
  l.setPosition(LegendPosition.BELOW_CHART_LEFT);
  XAxis xAxis=mChart.getXAxis();
  xAxis.setTypeface(tf);
  xAxis.setTextSize(12f);
  xAxis.setTextColor(Color.WHITE);
  xAxis.setDrawGridLines(false);
  xAxis.setDrawAxisLine(false);
  xAxis.setSpaceBetweenLabels(1);
  YAxis leftAxis=mChart.getAxisLeft();
  leftAxis.setTypeface(tf);
  leftAxis.setTextColor(ColorTemplate.getHoloBlue());
  leftAxis.setAxisMaxValue(200f);
  leftAxis.setAxisMinValue(0f);
  leftAxis.setDrawGridLines(true);
  leftAxis.setGranularityEnabled(true);
  YAxis rightAxis=mChart.getAxisRight();
  rightAxis.setTypeface(tf);
  rightAxis.setTextColor(Color.RED);
  rightAxis.setAxisMaxValue(900);
  rightAxis.setAxisMinValue(-200);
  rightAxis.setDrawGridLines(false);
  rightAxis.setDrawZeroLine(false);
  rightAxis.setGranularityEnabled(false);
}

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_linechart);
  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(45);
  mSeekBarY.setProgress(100);
  mSeekBarY.setOnSeekBarChangeListener(this);
  mSeekBarX.setOnSeekBarChangeListener(this);
  mChart=(LineChart)findViewById(R.id.chart1);
  mChart.setOnChartValueSelectedListener(this);
  mChart.setDescription("String_Node_Str");
  mChart.setNoDataTextDescription("String_Node_Str");
  mChart.setTouchEnabled(true);
  mChart.setDragDecelerationFrictionCoef(0.9f);
  mChart.setDragEnabled(true);
  mChart.setScaleEnabled(true);
  mChart.setDrawGridBackground(false);
  mChart.setHighlightPerDragEnabled(true);
  mChart.setPinchZoom(true);
  mChart.setBackgroundColor(Color.LTGRAY);
  setData(20,30);
  mChart.animateX(2500);
  Typeface tf=Typeface.createFromAsset(getAssets(),"String_Node_Str");
  Legend l=mChart.getLegend();
  l.setForm(LegendForm.LINE);
  l.setTypeface(tf);
  l.setTextSize(11f);
  l.setTextColor(Color.WHITE);
  l.setPosition(LegendPosition.BELOW_CHART_LEFT);
  XAxis xAxis=mChart.getXAxis();
  xAxis.setTypeface(tf);
  xAxis.setTextSize(11f);
  xAxis.setTextColor(Color.WHITE);
  xAxis.setDrawGridLines(false);
  xAxis.setDrawAxisLine(false);
  xAxis.setSpaceBetweenLabels(1);
  YAxis leftAxis=mChart.getAxisLeft();
  leftAxis.setTypeface(tf);
  leftAxis.setTextColor(ColorTemplate.getHoloBlue());
  leftAxis.setAxisMaxValue(200f);
  leftAxis.setAxisMinValue(0f);
  leftAxis.setDrawGridLines(true);
  leftAxis.setGranularityEnabled(true);
  YAxis rightAxis=mChart.getAxisRight();
  rightAxis.setTypeface(tf);
  rightAxis.setTextColor(Color.RED);
  rightAxis.setAxisMaxValue(900);
  rightAxis.setAxisMinValue(-200);
  rightAxis.setDrawGridLines(false);
  rightAxis.setDrawZeroLine(false);
  rightAxis.setGranularityEnabled(false);
}