From f58b1f33c6ad9db8735f7ff2e325e6de9d7d0456 Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Thu, 29 Sep 2016 21:04:06 +0200 Subject: [PATCH] Fix parameter order for mpandroidchart 3.0 --- .../activities/charts/AbstractChartFragment.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractChartFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractChartFragment.java index 662fbe48..fa421a42 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractChartFragment.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractChartFragment.java @@ -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 values, List colors, String label) {