mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 10:35:50 +01:00
Fix crash with mpandroidchart 3.0pre (master)
This commit is contained in:
parent
478782998e
commit
e5d178b315
@ -735,10 +735,10 @@ public abstract class AbstractChartFragment extends AbstractGBFragment {
|
||||
|
||||
@Override
|
||||
public String getFormattedValue(float value, AxisBase axis) {
|
||||
if (xLabels == null) {
|
||||
int index = (int) value;
|
||||
if (xLabels == null || index >= xLabels.size()) {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
int index = (int) value;
|
||||
return xLabels.get(index);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user