insulincurves - ActivityGraph fix double plotting
This commit is contained in:
parent
085caddeee
commit
13cd7dbda1
|
@ -21,7 +21,6 @@ import info.nightscout.androidaps.interfaces.InsulinInterface;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class ActivityGraph extends GraphView {
|
public class ActivityGraph extends GraphView {
|
||||||
|
|
||||||
Context context;
|
Context context;
|
||||||
|
|
||||||
public ActivityGraph(Context context) {
|
public ActivityGraph(Context context) {
|
||||||
|
@ -35,6 +34,8 @@ public class ActivityGraph extends GraphView {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void show(InsulinInterface insulin) {
|
public void show(InsulinInterface insulin) {
|
||||||
|
removeAllSeries();
|
||||||
|
mSecondScale = null;
|
||||||
double dia = insulin.getDia();
|
double dia = insulin.getDia();
|
||||||
int hours = (int) Math.floor(dia + 1);
|
int hours = (int) Math.floor(dia + 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue