Wear Reduce Overlap between barbs and Bolus points in Graphs
This commit is contained in:
parent
24c2f47e84
commit
333d82acb2
1 changed files with 4 additions and 4 deletions
|
@ -139,7 +139,7 @@ class BgGraphBuilder(
|
||||||
val pointValues: MutableList<PointValue> = ArrayList()
|
val pointValues: MutableList<PointValue> = ArrayList()
|
||||||
for ((date, bolus, _, isSMB, isValid) in bolusWatchDataList) {
|
for ((date, bolus, _, isSMB, isValid) in bolusWatchDataList) {
|
||||||
if (date in (startingTime + 1)..endingTime && !isSMB && isValid && bolus > 0) {
|
if (date in (startingTime + 1)..endingTime && !isSMB && isValid && bolus > 0) {
|
||||||
pointValues.add(PointValue(fuzz(date), offset - 2))
|
pointValues.add(PointValue(fuzz(date), offset - pointSize * 3))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Line(pointValues).also { line ->
|
return Line(pointValues).also { line ->
|
||||||
|
@ -154,7 +154,7 @@ class BgGraphBuilder(
|
||||||
val pointValues: MutableList<PointValue> = ArrayList()
|
val pointValues: MutableList<PointValue> = ArrayList()
|
||||||
for ((date, bolus, _, isSMB, isValid) in bolusWatchDataList) {
|
for ((date, bolus, _, isSMB, isValid) in bolusWatchDataList) {
|
||||||
if (date in (startingTime + 1)..endingTime && isSMB && isValid && bolus > 0) {
|
if (date in (startingTime + 1)..endingTime && isSMB && isValid && bolus > 0) {
|
||||||
pointValues.add(PointValue(fuzz(date), offset - 2))
|
pointValues.add(PointValue(fuzz(date), offset - pointSize * 3))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Line(pointValues).also { line ->
|
return Line(pointValues).also { line ->
|
||||||
|
@ -169,7 +169,7 @@ class BgGraphBuilder(
|
||||||
val pointValues: MutableList<PointValue> = ArrayList()
|
val pointValues: MutableList<PointValue> = ArrayList()
|
||||||
for ((date, bolus, carbs, _, isValid) in bolusWatchDataList) {
|
for ((date, bolus, carbs, _, isValid) in bolusWatchDataList) {
|
||||||
if (date in (startingTime + 1)..endingTime && !(isValid && (bolus > 0 || carbs > 0))) {
|
if (date in (startingTime + 1)..endingTime && !(isValid && (bolus > 0 || carbs > 0))) {
|
||||||
pointValues.add(PointValue(fuzz(date), offset - 2))
|
pointValues.add(PointValue(fuzz(date), offset - pointSize * 3))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Line(pointValues).also { line ->
|
return Line(pointValues).also { line ->
|
||||||
|
@ -184,7 +184,7 @@ class BgGraphBuilder(
|
||||||
val pointValues: MutableList<PointValue> = ArrayList()
|
val pointValues: MutableList<PointValue> = ArrayList()
|
||||||
for ((date, _, carbs, isSMB, isValid) in bolusWatchDataList) {
|
for ((date, _, carbs, isSMB, isValid) in bolusWatchDataList) {
|
||||||
if (date in (startingTime + 1)..endingTime && !isSMB && isValid && carbs > 0) {
|
if (date in (startingTime + 1)..endingTime && !isSMB && isValid && carbs > 0) {
|
||||||
pointValues.add(PointValue(fuzz(date), offset + 2))
|
pointValues.add(PointValue(fuzz(date), offset + pointSize * 3))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Line(pointValues).also { line ->
|
return Line(pointValues).also { line ->
|
||||||
|
|
Loading…
Reference in a new issue