insulincurves - ActivityGraph fix double plotting

This commit is contained in:
AdrianLxM 2017-08-14 13:44:53 +02:00
parent 085caddeee
commit 13cd7dbda1

View file

@ -21,7 +21,6 @@ import info.nightscout.androidaps.interfaces.InsulinInterface;
*/
public class ActivityGraph extends GraphView {
Context context;
public ActivityGraph(Context context) {
@ -35,6 +34,8 @@ public class ActivityGraph extends GraphView {
}
public void show(InsulinInterface insulin) {
removeAllSeries();
mSecondScale = null;
double dia = insulin.getDia();
int hours = (int) Math.floor(dia + 1);