Browse Source

StatsFragment crash fix

pull/70/head
Ezerous 4 years ago
parent
commit
1fb91bc7a7
  1. 5
      app/src/main/java/gr/thmmy/mthmmy/activities/profile/stats/StatsFragment.java

5
app/src/main/java/gr/thmmy/mthmmy/activities/profile/stats/StatsFragment.java

@ -358,7 +358,10 @@ public class StatsFragment extends Fragment {
@Override @Override
public String getFormattedValue(float value, AxisBase axis) { public String getFormattedValue(float value, AxisBase axis) {
return mValues.get((int) value); if (((int) value) < mValues.size())
return mValues.get((int) value);
else
return "0";
} }
} }
} }

Loading…
Cancel
Save