|
|
@ -256,6 +256,8 @@ public class InfoFragment extends BaseFragment { |
|
|
|
|
|
|
|
|
|
|
|
if (myInfo.getScoreHistory() != null && myInfo.getScoreHistory().size() >= MIN_HISTORY) { |
|
|
|
if (myInfo.getScoreHistory() != null && myInfo.getScoreHistory().size() >= MIN_HISTORY) { |
|
|
|
loadChart(myInfo.getScoreHistory()); |
|
|
|
loadChart(myInfo.getScoreHistory()); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
Toast.makeText(getContext(),R.string.no_score_history,Toast.LENGTH_SHORT).show(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -629,7 +631,10 @@ public class InfoFragment extends BaseFragment { |
|
|
|
xAxis.setValueFormatter(new ValueFormatter() { |
|
|
|
xAxis.setValueFormatter(new ValueFormatter() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public String getFormattedValue(float value) { |
|
|
|
public String getFormattedValue(float value) { |
|
|
|
int index = (int) (value - 1); |
|
|
|
int index = (int) (value); |
|
|
|
|
|
|
|
if(index==values.size()){ |
|
|
|
|
|
|
|
return ""; |
|
|
|
|
|
|
|
} |
|
|
|
return formatUnix(values.get(index).getTime()); |
|
|
|
return formatUnix(values.get(index).getTime()); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|