1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +01:00

Fix parameter order for mpandroidchart 3.0

This commit is contained in:
cpfeiffer 2016-09-29 21:04:06 +02:00
parent b2065fd91f
commit f58b1f33c6

View File

@ -89,6 +89,7 @@ public abstract class AbstractChartFragment extends AbstractGBFragment {
return mChartDirty;
}
@Override
public abstract String getTitle();
public boolean supportsHeartrate(GBDevice device) {
@ -548,11 +549,11 @@ public abstract class AbstractChartFragment extends AbstractGBFragment {
protected abstract void setupLegend(Chart chart);
protected BarEntry createBarEntry(float value, int index) {
return new BarEntry(value, index);
return new BarEntry(index, value);
}
protected Entry createLineEntry(float value, int index) {
return new Entry(value, index);
return new Entry(index, value);
}
protected BarDataSet createActivitySet(List<BarEntry> values, List<Integer> colors, String label) {