Browse Source

StatsFragment crash fix

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

3
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) {
if (((int) value) < mValues.size())
return mValues.get((int) value); return mValues.get((int) value);
else
return "0";
} }
} }
} }

Loading…
Cancel
Save